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

Remove waiting period when closing #735

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Remove waiting period when closing #735

merged 1 commit into from
Apr 18, 2024

Conversation

ctrueden
Copy link
Member

The gracePeriod variable only decreases in the main loop while it is
looping. But the shouldClose = true causes the main loop to stop
looping. So the gracePeriod only had time to decrement once (to 59),
at which point the while loop here in the close() function gets stuck.

It may be the case that this looping was only necessary for the OpenGL
renderer anyway, which is no longer an issue, so we can simplify now.

The gracePeriod variable only decreases in the main loop while it is
looping. But the `shouldClose = true` causes the main loop to stop
looping. So the gracePeriod only had time to decrement once (to 59),
at which point the while loop here in the `close()` function gets stuck.

It may be the case that this looping was only necessary for the OpenGL
renderer anyway, which is no longer an issue, so we can simplify now.
@skalarproduktraum skalarproduktraum merged commit 44aaeed into main Apr 18, 2024
6 checks passed
@skalarproduktraum skalarproduktraum deleted the close-cleanly branch April 18, 2024 19:26
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.

2 participants