Answer by Timmmm for Why is putImageData so slow?
This is presumably because modern browsers use hardware acceleration for <canvas> elements, and getImageData()/putImageData() require transferring image data from the graphics card to the host or...
View ArticleAnswer by Daniel Baulig for Why is putImageData so slow?
Just a small update on what the best way is to do this. I actually wrote my Bachelor Thesis on High Performance ECMAScript and HTML5 Canvas (pdf, German; password: stackoverflow), so I gathered some...
View ArticleAnswer by Corey Trager for Why is putImageData so slow?
In Firefox 3.6.8 I was able to workaround the slowness of putImageData by using toDataUrl/drawImage instead. For me it's working fast enough that I can call it within handling a mousemove event:To...
View ArticleAnswer by andrewmu for Why is putImageData so slow?
Firstly you say you are measuring with Firebug. I actually find that Firebug slows down JS execution considerably, so you may not be getting good numbers for performance.As for putImageData, I suspect...
View ArticleWhy is putImageData so slow?
I am working with a relatively large Canvas where various (complex) stuff is drawn to. I then want to save the Canvas' state, so I can quickly reset it to the state it now is at a later point. I use...
View Article