anubhawps / gritty

Automatically exported from code.google.com/p/gritty
0 stars 0 forks source link

More efficient redraw #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Rather than draw out of the back buffer as it is modified, 
do it from a timer, and keep track of the damaged cells in a bitset in the
backbuffer.

This way the amount of cpu used for drawing text, eg in quick scrolls,
weird character based animations etc is bounded.

 If multiple observers of a backbuffer are ever done this would need to be
a list of bitsets.. maybe still be able to only modify one per damage, and
union them at draw time. 

Original issue reported on code.google.com by robert.w...@gmail.com on 11 Apr 2007 at 6:03

GoogleCodeExporter commented 8 years ago
Done, without multiple observers. Pretty damn quick to draw. 

Original comment by robert.w...@gmail.com on 13 Apr 2007 at 12:41