Canvas performance in Dart Canvas performance in Dart dart dart

Canvas performance in Dart


If it works like it does in javascript, your issue is probably with the fact that you're cacheing a CanvasElement and that the drawImage have to retrieve the bitmapData from it each time it is called. This is a really expensive operation.

You could try to cache the imageData with getImageData and draw it with putImageData (both are CanvasRenderingContext2D methods)