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:
Misa
2020-05-04 13:19:47 -07:00
committed by Ethan Lee
parent 179315c889
commit 694e8f42ab
6 changed files with 43 additions and 4 deletions

View File

@@ -105,8 +105,6 @@ int main(int argc, char *argv[])
}
}
SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, "1", SDL_HINT_OVERRIDE);
if(!FILESYSTEM_init(argv[0], baseDir, assetsPath))
{
return 1;
@@ -208,6 +206,8 @@ int main(int argc, char *argv[])
//Moved screensetting init here from main menu V2.1
game.loadstats();
graphics.processVsync();
if (game.skipfakeload)
game.gamestate = TITLEMODE;
if(game.usingmmmmmm==0) music.usingmmmmmm=false;