Render when Resized / Menu Active#269
Closed
Psycast wants to merge 2 commits into
Closed
Conversation
This moves most of the render logic outside message loop so that it and an external timer can call render as needed. This keeps track if the window is being resize or the menu is open, and if so allows a 60hz timer to trigger a render update as well. The most annoying thing is all the debug stats tbh, and I don't know if this is the best way to do this but everything else I tried failed, and this was a way recommended online that actually worked.
Owner
|
Turns out, this issue is also fixed in #275. Since I'd need to revisit these code changes that PR, I'm just gonna close this one. Sorry we didn't coordinate here; I could have saved you some effort. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This moves most of the render logic outside message loop so that it and an external timer can call render as needed.
Keeps track if the window is being resize or the menu is open, and if so allows a 60fps timer to trigger a render update as well.
The debug stats made this kinda ugly.
Fixes #221