HTML version should run on 60 FPS only, because some video cards have 100 Hz refresh rate

This commit is contained in:
BADIM-PC\Vadim 2017-12-23 19:26:46 +03:00
parent 1dc31e3c67
commit 5667058369
1 changed files with 1 additions and 1 deletions

View File

@ -2728,7 +2728,7 @@ s32 main(s32 argc, char **argv)
} }
else createFileSystem(NULL, onFSInitialized); else createFileSystem(NULL, onFSInitialized);
emscripten_set_main_loop(tick, TIC_FRAMERATE == 60 ? 0 : TIC_FRAMERATE, 1); emscripten_set_main_loop(tick, TIC_FRAMERATE, 1);
#else #else
createFileSystem(argc > 1 && fsExists(argv[1]) ? fsBasename(argv[1]) : NULL, onFSInitialized); createFileSystem(argc > 1 && fsExists(argv[1]) ? fsBasename(argv[1]) : NULL, onFSInitialized);