GlenDC / trixel

An easy to use webtool, to make trixel art.
http://www.glendc.com/trixel/
MIT License
18 stars 0 forks source link

++Lazy Html #111

Closed GlenDC closed 9 years ago

GlenDC commented 9 years ago

Right now we're passing the entire Model to all draw functions. Lazy Html relies on the model that is used for a draw function and will only redraw when that model is changed. The problem with the current setup is that it will redraw for every change, even if that change doesn't affect the layout at all.

An extreme example is changing the mouse position. This only affects the editor canvas and it is thus not performant at all to redraw every element, every tim the mouse position changes.