jacobabrennan / Project-Fennel

http://antlerpig.com
4 stars 2 forks source link

Optimization: Draw tiles on separate canvas #24

Open jacobabrennan opened 11 years ago

jacobabrennan commented 11 years ago

There is currently one canvas that gets redrawn every time the screen updates. Instead, consider creating two canvases: one that is cleared every update before having the sprites drawn on it, and one that sits underneath and is only redrawn when the user transitions screens. This idea could be extended to a third canvas for the HUD.