mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Webclient: Fix non vsync fps limit not applying at startup
This commit is contained in:
parent
e53f715f29
commit
7c604e736e
@ -643,6 +643,9 @@ static void Game_DoFrame(void) {
|
||||
static void Game_RunLoop(void) {
|
||||
lastRender = Stopwatch_Measure();
|
||||
emscripten_set_main_loop(Game_DoFrame, 0, false);
|
||||
/* The Game_SetFpsLimit call back in Game_Load does nothing because no main loop yet */
|
||||
/* Now thats there's a main loop, Game_SetFpsLimit will actually do something */
|
||||
Game_SetFpsLimit(Options_GetEnum(OPT_FPS_LIMIT, 0, FpsLimit_Names, FPS_LIMIT_COUNT));
|
||||
}
|
||||
#else
|
||||
static void Game_RunLoop(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user