Canvas renderer caching
schteppe opened this issue · 0 comments
schteppe commented
Hi,
Nice work with the engine!
Regarding the demo CanvasRenderer, I see you rerender circles very often. By caching the ones of same size + color and doing ctx.drawImage( cachedCanvas, x, y )
, you can speed up things a lot.
For an example, see http://iainlobb.com/bunnies/bunnies.html
Or: http://www.professorcloud.com/mainsite/cache-canvas.htm
Stefan