Re: fast drawing in delphi



Maldona8 wrote:
> "Bjørge" <bjorge@xxxxxxxxxxxxxxx> a écrit dans le message de news:
>>No matter what you do, don't do a large number of point/draw operatrions
>>onto a visible canvas. Do rather create an invisible ("off-screen")
>>bitmap,
>>do all painting on this one, and copy the entire image onto the visibla
>>canvas by BitBlt() WinAPI. This is\t as magic as e.g. DirectX, but it
>>speeds
>>up painting substantially.
OK Bjørge,
here is the code I use for a simply 10x10 map
Please modify it so it can make use of the
off-screen bitmap with BitBlt functions?

Eh...well, something must have happened since my last "fast paint" attempt...maybe something with hardware:
- when I tried to do this opearation on an offscreen bitmap, it turned out to be some 10% slower !


I'll have to go back to my original sources to see if I have missed something - but I'm afraid not.



Bjørge
.


Quantcast