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

Fix lag when resizing Floating Game Window #102618

Merged

Conversation

Hilderin
Copy link
Contributor

@Hilderin Hilderin commented Feb 9, 2025

This PR reverts the frequency at which the update for the embedded process is performed. It is now executed again each time the floating window is resized or moved, significantly improving the user experience.

To avoid performing calculations on every frame and a deferred call, I retained the new timer to detect incorrectly focused windows/processes and mouse-over focus. These operations can be executed less frequently. The update for the embedded process now occurs in the process notification.

I retested this on my old computer, and the difference is mostly unnoticeable.

Fedora 41 KDE Plasma - Godot 4.4 Beta 3:

Screencast_20250209_073251.webm

Fedora 41 KDE Plasma - Godot this PR:

Screencast_20250209_073125.webm

@Norrox
Copy link
Contributor

Norrox commented Feb 9, 2025

Will this fix the window stop rendering in wayland when out of focus?

Screencast_20250209_220249.webm

image

@Hilderin
Copy link
Contributor Author

Hilderin commented Feb 9, 2025

This seems another issue not yet reported. Can you create a new separate bug for this issue with detailed version on your distribution and window manager? Thanks.

@akien-mga akien-mga changed the title Fix Lag when resizing Floating Game Window Fix lag when resizing Floating Game Window Feb 10, 2025
@akien-mga akien-mga merged commit fa85645 into godotengine:master Feb 10, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

[4.4 Beta 3] Embedded game window lags when changing positions and scale.
3 participants