mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user