Add FPS to SDL title bar
Also fix a small issue with incorrect shutdown ordering in SDL. Previously the system would still be running so the telemetry task didn't launch and detached_tasks would assert(count == 0)
This commit is contained in:
parent
3bfba23362
commit
64dbc92b61
3 changed files with 17 additions and 2 deletions
|
@ -60,4 +60,7 @@ protected:
|
|||
|
||||
/// Internal SDL2 render window
|
||||
SDL_Window* render_window;
|
||||
|
||||
/// Keeps track of how often to update the title bar during gameplay
|
||||
u32 last_time = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue