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

[Windows / winit] window freezes / gets inactive if not in focus #590

Open
lokmeinmatz opened this issue May 5, 2020 · 1 comment
Open

Comments

@lokmeinmatz
Copy link

I noticed the programm stops redrawing and gets marked as "inactive" in the taskmanager, the close cross gets highlighted in light red.
The update loop continues to run.
When i move the mouse / give other input, even if not in the window, most of the time it continues (maybe 10% the window gets marked as not responding).
This happens as well with my own apps using the 0.14.0 release from crates.io as well as with the cloned github master using the examples, in debug and in release mode.

I assume it relates to rust-windowing/winit#1384, but I'm not familiar enough with the architecture of nannou, winit and windows to confirm it.

I also used etw traces to figure out where the error could be, but the only thing i notice is that as soon as the app goes inactive, the update continues to run, but at "full load", so no wait time for the next frame, even though the loopmode is the default (RefreshSync).
Maybe because there is no redraw event to wait for?

If you need more information or testing from me, I'm happy to help ;D

@lokmeinmatz
Copy link
Author

If I clone winit from master and use that in the cargo.toml of nannou it works so I assume this will be fixed by winit soon

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

No branches or pull requests

2 participants