flypup / duel-of-the-devs

Duel of the Devs Web Game. Continuation of GitHub Game Off 2012 entry.
http://minimonks.com
2 stars 1 forks source link

Drawing Optimizations #40

Closed robwalch closed 11 years ago

robwalch commented 11 years ago

chrome://tracing shows "Image Decode" processes slowing down drawing in parts of the map with lots of image data or entity activity. Copying images to canvas(es) to keep the bitmaps in memory will probably help avoid the constant image GC and decoding.

Details on using Chrome tracing (find tab id in chrome://memory, use WASD keys to navigate timeline) https://www.youtube.com/watch?v=nxXkquTPng8#!