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

@@ -364,6 +364,13 @@ void menuactionpress()
game.over30mode = !game.over30mode;
game.savestats();
break;
case 6:
//toggle vsync
music.playef(11);
graphics.vsync = !graphics.vsync;
graphics.processVsync();
game.savestats();
break;
default:
//back
music.playef(11);