Hello!
I am developing an application that consists of cells that you can drag
around.
Drawing these cells is time consuming, that's why I have to think a lot
about which regions have to be redrawn.
The cells can overlap, and "normal" estimation of region to be redrawn
doesn't really help.
Normally I would say "Okay, if cell A has to be drawn and it overlaps
cell B, then I redraw cell B as well, no problem.
But cell B may overlap cell D, for example, it could be something like a
chain-reaction.
Also, the cells don't have clean edges, but they have alpha-channel drop
shadows, so if I would redraw a cell without blitting the background
first, the drop shadows would add and appear much darker (something that
I see on the XP desktop quite often).
I have spent weeks with this problem already, but I need to gain more speed.
Does anybody have any tipps for me?
Thank you very much.
Ulf Hansen
|