Hi,

I'm running my recursion-heavy game app with emterpreter so I can
pause/resume execution.

To achieve this I patched SDL2 so it calls emscripten_sleep() on
SDL_Delay and Emscripten_GLES_SwapWindow().

I get quite annoyed by the port system which gets SDL2 straight from
github and caches the result: if I ever forget to set EMCC_LOCAL_PORTS
appropriately, emcc will happily fetch the non-patched, inappropriate
version and my app will freeze. I also have to clean the cache whenever
I need to change to a non-emterpreter build.
I eventually patched tools/ports/sdl.py to handle a new "-s
USE_SDL=2emterpreter" variant.
I hesitate to drop -s USE_SDL and recompile SDL manually as several .a
libs (with/without emterpreter) but I'd rather stay close to the current
SDL2 port (which I contribute to).

How do you people cope with SDL2+emterpreter?
(ideally there's a way to support it without patching around both SDL2
and emscripten?)

Cheers!
Beuc

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to