]> git.cworth.org Git - kub/commitdiff
Use the expose event's region to avoid drawing tiles that don't need to be redrawn.
authorCarl Worth <cworth@cworth.org>
Thu, 15 Mar 2007 16:25:54 +0000 (09:25 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 15 Mar 2007 16:25:54 +0000 (09:25 -0700)
The reason that dragging was so slow before is that the program
was redrawing every single tile every time the mouse moved. Now
we only redraw tiles that are actually affected by the movement.

This is fast enough now that we probably don't even need to add
caches for pre-rendered tiles, (though of course, if we did that
it would be even faster).


No differences found