Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger window has massive delay after resize/move, and then alt-tabbed back and forth. #92759

Closed
hydescarf opened this issue Jun 4, 2024 · 2 comments · Fixed by #92742
Closed

Comments

@hydescarf
Copy link

hydescarf commented Jun 4, 2024

Tested versions

  • Reproducible: 4.3.dev6, 4.3.beta1
  • Non-reproducible: 4.2.2, 4.3.dev5

System information

Windows 11

Issue description

(Probably need a better title)
If you run the scene in the Editor (F5/F6), everything's working as usual. But the moment you move or resize (and sometimes just idling), then focus/alt-tab back to Editor and then back to Running Scene, the delay starts. (See video for better conveying)

Notice on the on-screen key pressed, and the movement (and console output) on the scene.

2024-06-04.221020.mp4

This was tested on both Windows 10 (old laptop spec) & 11 (rather modern pc spec), and only happens after 4.3.dev6.

Steps to reproduce

  1. Create a script with left/right movement for a Sprite2D. (or anything else I assume)
  2. Run the scene and move. (working as usual)
  3. Move or resize the window, then focus on Editor, then refocus back on the Running Scene.
  4. Move the sprite again. (delay occurs)

(Pressing on a button also does the same thing, so it's not related to the keyboard itself)

Minimal reproduction project (MRP)

N/A, since it also happens on new project.

@matheusmdx
Copy link
Contributor

Bisecting points to #91361 as the culprit:

image

Also, this is issue was similar to #92307 so i used the same steps to try reproduce and worked (i wasn't able to reproduce that issue before) so that explains why #92307 was so hard to replicate, the same method works to easily reproduce #92304 and #92305 but using alt+tab to focus another window. The funny part is pr #92742 that was made to fix #92304 and #92305 (and these two was already fixed by #92415) actually fixes this issue and #92307

@hydescarf
Copy link
Author

Interesting. I was thinking of linking #92304 to this as I had the same problem, but was unable to reproduce it through moving the debugger windows & alt-tabbing. (Though it works if it's between Editor and other applications)
Also as mentioned in the first post, idling the debugger while coding sometimes may cause the issue as well, but I didn't actively try to replicate that and could be misremembering.

Commenting these in, just in case. Hopefully that fix will cover that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Unassessed
Development

Successfully merging a pull request may close this issue.

5 participants