1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 14:17:10 +00:00

a commandline option to disable vsync

This commit is contained in:
Zeno Rogue
2018-02-20 11:41:55 +01:00
parent 0412ea7b7c
commit 3b19ae2bbd
2 changed files with 11 additions and 0 deletions

View File

@@ -74,6 +74,10 @@ int arg::readCommon() {
else if(argis("-font")) { PHASE(1); shift(); fontpath = args(); }
else if(argis("-picload")) { PHASE(3); shift(); mapeditor::loadPicFile(args()); }
#endif
else if(argis("-vsync_off")) {
vsync_off = true;
if(curphase == 3) setvideomode();
}
else if(argis("-canvas")) {
PHASE(2);
firstland = specialland = laCanvas;