Skip to content

Fix texture creation freezing the game when done off the main thread (consistent when going back from download) - #236

Merged
AiAe merged 1 commit into
Quaver:masterfrom
TDMG-NL:going-back-from-download-freezes-game
Sep 9, 2026
Merged

Fix texture creation freezing the game when done off the main thread (consistent when going back from download)#236
AiAe merged 1 commit into
Quaver:masterfrom
TDMG-NL:going-back-from-download-freezes-game

Conversation

@TDMG-NL

@TDMG-NL TDMG-NL commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This PR fixes it so going from the download screen back to the main menu doesn't freeze the game on a black screen anymore. This happened because creating button textures was being done from a background thread while the main thread was still drawing which could hang. Likely the reason that it consistently hung when coming back from download was because it draws more then other screens. Fixed by making that texture creation always happen on the main thread instead.

@AiAe
AiAe merged commit 1baa174 into Quaver:master Sep 9, 2026
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.

2 participants