Quote:
Originally Posted by hansel
What do you think?
|
Well, the code to merge rectangles is already done and is not computationally intensive.Even if its only benefit is to select between full and typing refresh more reasonably, I think that it worths its complexity increase

.
OTOH, counting "how dirty" is an area could be interesting. I'm already calculating intersections, so it would be a matter of having running sum of the intersections occurred in every tracked area (and when merging tracked areas, sum them). If the ratio intersected pixels/area is higher than some number, do a full refresh. The only problem with this approach is that right now we're discarding the tracked areas info after the typing refresh.
It can be reasonable saving the info for nnnxnnn blocks as you say. Time to think about it.
About partial screen updates: I still have faith that we will get to that point sometime ;-). At least to support scribbles...