I've been using Emscripten with SDL2 to do some 2D game work. I wrote a test program (concerned that my code was problematic) .. it turns out it gives some weird results... like software renderers are faster than hardware renderers, and that with accelerated SDL_FillRect and SDL_CopyRect are about 120x faster on a native build than a web build....
Old build uploaded for your excitement (instant results!) http://robprobin.com/SDL2_emscripten_tests/ Test code: https://github.com/robzed/SDL2_emscripten_tests Some results here: https://discourse.libsdl.org/t/emscripten-sdl2-performance/27236/ Comments or thoughts welcome. Yeah, less sprites or rects would make it work better :-) -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/ef4f7fee-0373-4a2e-bc14-67ca131ae402%40googlegroups.com.
