[SDL3] [WASM] Rendering without using requestAnimationFrame
even with emscripten_set_main_loop
properly called
#12805
Milestone
Hello,
Feels like I'm doing some obvious mistake, but when I compile my basic app with static version of
SDL 3.2.10
with Emscripten into WASM, I get theLooks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!
warning (Safari, Edge).But in the code I use the
emscripten_set_main_loop
as mentioned in the warning. Here is themain.cpp
.I'm on macOS with Apple Silicon using
emcc
in4.0.6-git
version, with some basic flags.Am I missing something please?
Thank you,
Martin
The text was updated successfully, but these errors were encountered: