[Lazarus] Sprite example

Graeme Geldenhuys graemeg.lists at gmail.com
Tue May 13 15:17:10 CEST 2008


Mattias Gärtner wrote:
>>> What is causing the high CPU usage in the Lazarus LCL sprite demo?
> 
> Canvas.StretchDraw

Ah yes, that would add quite a bit more cpu usage. Don't know how I 
missed that one. :-(

> Maybe it is a bug.
> But for me one with low priority.

Agreed. A quick work-around would be to check the original background 
image size. If it's the same, use the standard DrawImage (or whatever 
it's called) and if it's different use StretchDraw.

OR

Don't care, make the CPU work!  :-)


Regards,
   - Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list