-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Bevy 0.10 regression: very long startup if WinitSettings.unfocused_mode
is set to UpdateMode::Reactive
#7974
Comments
unforcused_mode
is set to UpdateMode::Reactive
unforcused_mode
is set to UpdateMode::Reactive
WinitSettings::unforcused_mode
is set to UpdateMode::Reactive
WinitSettings::unforcused_mode
is set to UpdateMode::Reactive
WinitSettings.unforcused_mode
is set to UpdateMode::Reactive
Could you give us a before / after tracing flamegraph? This might be due to the more involved system graph processing. If that's the case, there are a number of things we can do to improve performance there, ranging from simple optimizations to caching the graph on disk. See https://github.com/bevyengine/bevy/blob/main/docs/profiling.md for more info. |
Alternatively, given your reproduction this could just be a bug with how we / winit is handling that specific mode. |
Sure, I have traces for 0.9 and 0.10 in chrome tracing format, My guess is that the 60 sec wait in 0.10 is because |
WinitSettings.unforcused_mode
is set to UpdateMode::Reactive
WinitSettings.unfocused_mode
is set to UpdateMode::Reactive
FYI in the future you can bypass that limitation by using .zip files :) And agreed: that looks squarely like a windowing bug: let's see if we can't get this fixed for 0.10.1... |
I've had a look at this and there are two parts that cause this behavior:
Tasks like running the With I think the most clean solution (from a task-stall-prevention perspective) would be to wake the main thread (by sending a user event through the winit event proxy) when a main-thread task is spawned by a render-thread, but this would require a lot of changes in a lot of unrelated places and probably hurt performance. A more pragmatic solution could be to consider a Wayland window focused at creation (ignoring the |
Just checking in after seeing Mastodon post: https://fosstodon.org/@alice_i_cecile@mastodon.gamedev.place/111811705662087955 I can reproduce this issue on Wayland (Fedora 39, Sway WM) still, so I guess it is still a valid issue. |
Bevy version
The release number or commit hash of the version you're using.
0.10/0.11/0.12/0.13
Relevant system information
Arch Linux
What you did
Running https://github.com/JayceFayne/bevy_regression
Pasting main.rs below:
What went wrong
Takes very long to start
Additional information
Downgrading to 0.9 fixes the issue
The text was updated successfully, but these errors were encountered: