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/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
