Skip to content

move game drawing to IMGUI::end() - #99

Open
ngc92 wants to merge 1 commit into
masterfrom
new-game-draw
Open

move game drawing to IMGUI::end() #99
ngc92 wants to merge 1 commit into
masterfrom
new-game-draw

Conversation

@ngc92

@ngc92 ngc92 commented Feb 17, 2023

Copy link
Copy Markdown
Collaborator

…so that frame dropping can be effective again

In order for the current frame drop mechanism to work, we need to make sure that all the heavy SDL calls happen inside the guarded part, which is mostly IMGUI::end(). I've thus changed it so that IMGUI also gets responsible for triggering the game drawing, by caching the game state until the actual draw call is made.

@ngc92 ngc92 added this to the release 1.2 milestone Mar 3, 2023
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.

1 participant