News for hackers. Stuff that matters.
Re:Illuminated.js – 2D lights and shadows rendering engine f... by leeoniya on Friday May 11, 2012 @10:49AM (#3959454)
drawImage is usually faster. i think it's also more useful if you need alpha composition (overlays).

http://jsperf.com/canvas-drawimage-vs-putimagedata/11

also read this about imageData caching and explanations of the different opts. loop unrolling helps a bit, forget the typed array stuff for now, it wont work anywhere for some time.

http://hacks.mozilla.org/2011/12/faster-canvas-pixel-manipul...

Re:Illuminated.js – 2D lights and shadows rendering engine f... by gren on Friday May 11, 2012 @11:20AM (#3959650)
Thanks!