mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Add VSync graphics option, off by default
This is if you want delta-timesteps to go as quickly as possible. Also it seems like on Windows this only has an effect in exclusive fullscreen mode.
This commit is contained in:
@@ -139,6 +139,8 @@ void Graphics::init()
|
||||
col_tb = 0;
|
||||
|
||||
kludgeswnlinewidth = false;
|
||||
|
||||
vsync = false;
|
||||
}
|
||||
|
||||
int Graphics::font_idx(uint32_t ch) {
|
||||
@@ -3100,3 +3102,8 @@ Uint32 Graphics::crewcolourreal(int t)
|
||||
}
|
||||
return col_crewcyan;
|
||||
}
|
||||
|
||||
void Graphics::processVsync()
|
||||
{
|
||||
SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, vsync ? "1" : "0", SDL_HINT_OVERRIDE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user