Hi, I just tried emscripten/wasm today.
My code is an opengl/sdl program. I have a setup routine that pregenerates models and textures. And then a render loop. I learnt from the document that I can't use a plain while() loop for the main loop as it will stuck the web browser. But my setup function seems to take quit long time too, about 6 minutes. Eventually the program will run perfectly when it reaches the main loop. but the 6 minutes setup time is unacceptable. I'm wondering if there is a way to briefly give the control back to the browser during setup. For example, a pause function. so I can do setupStep1(); pause(); setupStep2(); pause(); .... Thanks! -- 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.
