agb/website
Corwin 9b36ae62e0
Manually handle frameskipping for better audio on non multiple of 60hz screens (#613)
* We want to always use animation frames as our time to call the main
loop because otherwise the timing is inconsistent leading to very bad
audio.
* We don't want to call the main loop every frame otherwise > 60hz
screens will play too fast.
* We can't emscripten's frameskipping becuase it only allows for
integers whereas screeens come in many other framerates such as 75hz,
90hz, 144hz, etc.
* Therefore we manually manage frameskipping by ~~ab~~using pause and
resume game which internally just enable and disable the emscripten's
calling of the main loop. (see
27dede256b/src/platform/wasm/main.c (L183)).
* We could modify the code to let us call the main loop ourselves and
take full control over this, but for now this is okay.
2024-04-06 20:24:44 +01:00
..
app Manually handle frameskipping for better audio on non multiple of 60hz screens (#613) 2024-04-06 20:24:44 +01:00
mgba-wasm build mgba wasm 2024-04-04 00:54:23 +01:00
site fix controls 2024-04-06 02:24:10 +01:00
.gitignore update site 2024-04-04 00:54:23 +01:00