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

You probably would have been better off with typed arrays and fragment shaders, if you were going for performance.


Aren't the arrays produced by a canvas object typed?


Yep, but they only become performant when you treat them as such instead of doing naive e.g. multiplication. See: https://hacks.mozilla.org/2011/12/faster-canvas-pixel-manipu...




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

Search: