Calculate simulated vsync interval based on display refresh rate

This commit is contained in:
Sam Lantinga
2022-09-15 08:02:14 -07:00
parent 208964f038
commit e2753e19e8
2 changed files with 23 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ struct SDL_Renderer
/* Whether we should simulate vsync */
SDL_bool wanted_vsync;
SDL_bool simulate_vsync;
Uint32 simulate_vsync_interval;
Uint32 last_present;
/* The logical resolution for rendering */