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 app crashing, if it is minimized too long #1504

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Fix app crashing, if it is minimized too long #1504

merged 2 commits into from
Jan 12, 2023

Conversation

hannobraun
Copy link
Owner

@hannobraun hannobraun commented Jan 12, 2023

Close #1499

Thanks go to @kazatsuyu, who helped me figure out what was wrong and suggested the fix!

wgpu would fail after the window had been minimized and was un-minimized
again after a while, because `Gui::update` would run many times while
minimized, but `Gui::prepare_draw` wouldn't. That would lead to
`end_frame` not being called for a long time, which in turn would lead
to egui accumulating output.

After that went on for a while, and `prepare_draw` was called again,
there would be too much output for the index buffer to handle.
@hannobraun hannobraun enabled auto-merge January 12, 2023 13:04
@hannobraun hannobraun merged commit 4d64a65 into main Jan 12, 2023
@hannobraun hannobraun deleted the render branch January 12, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fornjot app freezes after a while
1 participant