]> git.cworth.org Git - kub/commit
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)
commit83a1595786b01a55be5b26516473253886c54b0c
treed27faff9aac8475f5ace9c76ee5554e636cdcc86
parent3a85458521e665ba1866507f9fad75a3f2e78987
Use the expose event's region to avoid drawing tiles that don't need to be redrawn.

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).
kub.c