You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any interest in porting this module to use asm.js for potentially better performance? Seems like a good fit (pure math).
I've started to.. my progress is available at https://github.com/deathcap/simplex-noise.js/tree/asm - only for noise2D at the moment, produces identical output as the original implementation (unit tests added) + successfully links as asm.js in Firefox.
Any interest in porting this module to use asm.js for potentially better performance? Seems like a good fit (pure math).
In my opinion asm.js is mostly interesting as a target for compilers. It's a pita for us humans. Also I'm not sure if calling asm.js code from non asm.js code has an additional overhead and/or won't be inlined properly. If it was significantly faster in the real world, it would be interesting. But for now I'm really not convinced.
(haven't yet tracked down why, exactly; very new to asm).
It could be that there actually is a boundary.
In any case it is a very interesting experiment. Keep me up to date if you find out something new. :)
asm.js currently has a massive performance hit when crossing the
asm.js/JavaScript boundary, which happens on every simplex noise call,
so it is noticeably slower than pure JavaScript for chunk generation.
Revert to the 2.1.1 simplex-noise release (without asm.js) to fix this.
jwagner/simplex-noise.js#5
Any interest in porting this module to use asm.js for potentially better performance? Seems like a good fit (pure math).
I've started to.. my progress is available at https://github.com/deathcap/simplex-noise.js/tree/asm - only for noise2D at the moment, produces identical output as the original implementation (unit tests added) + successfully links as asm.js in Firefox.
Unfortunately, benchmarks show the asm.js version is drastically slower: http://jsperf.com/simplex-noise-comparison-asm (haven't yet tracked down why, exactly; very new to asm).
The text was updated successfully, but these errors were encountered: