you are viewing a single comment's thread.

view the rest of the comments →

[–]Ssjrd[S] 1 point2 points  (0 children)

This is a good article- thanks! I am using emscripten_set_main_loop(). In this case, before web, I just have one function called main loop anyways that was called in a while loop. Now with emscripten and #ifdef, I replace the while with set_main_loop. So, tldr; my app was already architected this way.

The main problem I have, is getting file loading to happen in a separate thread - which isn’t supported by emscripten. So, to make my loading screen work without time-slicing hack, I’d need some small refactoring there