mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +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:
@@ -176,6 +176,18 @@ void menurender()
|
||||
graphics.Print(-1, 95, "Current mode: Over 30 FPS", tr, tg, tb, true);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
graphics.bigprint(-1, 30, "Toggle VSync", tr, tg, tb, true);
|
||||
graphics.Print(-1, 65, "Turn VSync on or off.", tr, tg, tb, true);
|
||||
|
||||
if (!graphics.vsync)
|
||||
{
|
||||
graphics.Print(-1, 95, "Current mode: VSYNC OFF", tr/2, tg/2, tb/2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.Print(-1, 95, "Current mode: VSYNC ON", tr, tg, tb, true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Menu::credits:
|
||||
|
||||
Reference in New Issue
Block a user