Very nice indeed! I notice in profiler that the code calls to nanosleep/usleep. In Emscripten that is a blocking busy spinning loop that consumes CPU and does not run JS events in the meanwhile, so it's not very good expect for legacy compatibility purposes. That sleep constitutes ~8% of total execution time on my system, so perhaps removing that can free up a few extra more cycles?
2015-03-06 7:15 GMT+02:00 Alon Zakai <[email protected]>: > Nice! Performs well even on a low-end machine. > > - Alon > > > On Thu, Mar 5, 2015 at 8:47 PM, Ian Rose <[email protected]> wrote: > >> Hi all, >> >> First off, I'd like to congratulate the emscripten team for making a >> really cool tool, I have been very impressed with how effective it is. >> >> I've been working on a side project for a while which I recently got up >> and running in the browser thanks to emscripten, and I thought that some >> people here might be interested in it, as it is very computationally >> intensive but still performs admirably well with asm.js. >> >> I'm a geophysicist specializing in convection of Earth's mantle, and the >> code in question solves the fluid dynamics equations relevant to planetary >> mantles. I intend it as a teaching tool, so I've tried to make it >> interactive and easy to understand. The user can mess with the fluid using >> the cursor and change some of the relevant parameters. >> >> Anyhow, feel free to check it out, or not, as you see fit. I am not a >> game or web developer, so forgive the somewhat amateur rendering and web >> design. >> >> http://ian-r-rose.github.io/interactive_earth/ >> >> Best, >> Ian >> >> -- >> 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.
