Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Took the time and refactored the perlin-noise port in the post to make it look a bit more like JavaScript.

As a small side effect I got a 3x speed increase.

JS Engines are good at optimizing, but having a senseless 256 copy loop in every call doesn't really work out that well if you can have a memcpy with Array.slice().

See: http://jsperf.com/perlin-noise



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: