Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions latebit/core/GameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ void GameManager::run() {
EmscriptenLoopArgs args = {&adjustTime, &loopTime, &steps,
clock.get(), frameTime, &this->paused};

emscripten_set_main_loop_arg(loop, &args, 0, 1);
emscripten_set_main_loop_timing(EM_TIMING_RAF, 33);
auto frames = Configuration::getMaxFrameRate();
emscripten_set_main_loop_arg(loop, &args, frames, 1);
}
void GameManager::setGameOver(bool gameOver) {
this->gameOver = gameOver;
Expand Down
4 changes: 2 additions & 2 deletions shmuxfile.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
wasm:
# Creates a wasm build
emmake cmake -DWASM=1 -B build-wasm .
emmake cmake --build build-wasm
emcmake cmake -B build .
emmake cmake --build build

native:
# Creates a native build
Expand Down