add ability to "disable" v-sync, set FPS limit to max

This commit is contained in:
ToadKing 2013-07-20 04:23:03 -04:00
parent b01856d166
commit 9816334ef4

View File

@ -119,7 +119,7 @@ int main(int argc, char *argv[])
menu_rom_history_push_current();
#endif
emscripten_set_main_loop(mainloop, 0, 0);
emscripten_set_main_loop(mainloop, g_settings.video.vsync ? 0 : INT_MAX, 1);
return 0;
}