diff options
| author | jroweboy <jroweboy@gmail.com> | 2019-09-22 15:40:57 +0200 |
|---|---|---|
| committer | FearlessTobi <thm.frey@gmail.com> | 2019-09-22 15:49:39 +0200 |
| commit | 64dbc92b614bfa388d31007788bf725c4e4b59e3 (patch) | |
| tree | 45a929441460b900174e33b13f1997e8986d3507 /src/yuzu_cmd/emu_window/emu_window_sdl2.h | |
| parent | 3bfba233622da947efacf10a1ce1271a859b9939 (diff) | |
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)
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.h')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h index d8051ebdf..eaa971f77 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h @@ -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; }; |
