-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Is ecs_guide.rs broken? #534
Comments
Thanks for reporting! The correct behavior should be if a player reaches a winning score or the maximum rounds are reached (where no one wins), the app should gracefully exit. I am able to reproduce the above issue and will try bisecting the commit that introduced this. |
This was introduced in #496, which made some changes to the app exit logic to help simplify support for the wasm target. bevy/crates/bevy_app/src/schedule_runner.rs Lines 95 to 102 in 74dba5f
tick() returns None when an AppExit event is received, but the run loop is never broken in that case. I'll open a patch now.
|
Awesome, I can definitely confirm that AppExit is the issue |
Thank you so much for the quick fix! |
I'm in the process of learning about Bevy, so please bear with me if this issue is invalid. I'm running the
ecs_guide
example on b05708f. After a few rounds with delayed steps, the game goes crazy and starts spitting out rounds in the thousands:From reading the comments, I expected the AppExit event to be sent and the game to exit. Is what I'm seeing the correct behavior?
The text was updated successfully, but these errors were encountered: