I think it is will be useful feature. Usually native code has not important functions that cannot be easily ported, for example playing videos between game levels or video/sound effects such as fadeout and fadein usually implemented as uninterrupted loop. For simplicity i just disable this effects, but if emterpreter can do this in asynchronous manner it will be great.
But it is not critical to have this feature right now. For me this feature can be delayed for sometime if it can`t be easily implemented. 2014-10-22 3:28 GMT+07:00 Alon Zakai <[email protected]>: > The emterpreter doesn't do that yet, but it could definitely be extended > to allow that. If there is nothing below that on the stack, then you could > run just that in the emterpreter, and run all the rest of the code > normally, so the project overall wouldn't be slow. And in the emterpreter > we would pause and resume it across browser event loops. > > Good to know this would be useful, I'll try to get to it soon. > > - Alon > > > On Mon, Oct 20, 2014 at 11:51 PM, caiiiycuk <[email protected]> wrote: > >> Hi Alon. Can i use emterpreter to avoid problems related to infinite >> loops. For example i have game that mostly emscripten ready, but some >> functions contains infinite loops that can't be easily rewritten. >> >> void infinite() { >> while (true) { >> // ... >> while (true) { >> // .. >> if (something) break; >> } >> if (something2) break; >> } >> } >> >> Can i use emterpreter only for function infinite and after that it will >> work fine in browser? >> >> -- >> 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. >> > > -- > 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. > -- С уважением, Гурьянов Александр -- 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.
