Skip to content

Commit

Permalink
Emscripten: Attempt to limit fps for users with >60Hz displays
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkster committed Nov 23, 2024
1 parent 6508fcc commit eaccf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ void EmscriptenMainLoop() {
// browsers don't have command line args, so pass default struct to init
init(CmdLineArgs());
init_finished = true;
emscripten_set_main_loop_timing(EM_TIMING_SETTIMEOUT, static_cast<int>(1000/settings->max_frames_per_sec));
}
return;
}
Expand Down

0 comments on commit eaccf22

Please sign in to comment.