Manage dirty rect efficiently
Posted
by Tianzhou Chen
on Stack Overflow
See other posts from Stack Overflow
or by Tianzhou Chen
Published on 2010-03-09T07:49:41Z
Indexed on
2010/03/09
7:51 UTC
Read the original article
Hit count: 215
dirtyrectangle
Hi all, I am implementing a view system and I want to keep track of all the dirty rects. It seems my dirty rect management is a bottleneck for the whole system. On one hand, invalidating the bounding box of the dirty region seems to be an easy approach. But in the situation like this: Say I have a client area of 100x100; I have a dirty rect with (0, 0, 1, 1) and another dirty rect with (99, 99, 1, 1). Invalidating the bounding box which turns out to be 100x100 is not efficient at all. So I want to ask if someone can give any hint or give me a link of the related literatures.
Thanks in advance!
© Stack Overflow or respective owner