[Lazarus] Fast drawing to canvas

Lukasz Sokol el.es.cr at gmail.com
Mon Feb 13 10:13:51 CET 2012


On 10/02/2012 19:13, Darius Blaszyk wrote:

> Your comments certainly help! I think you will probably be right for
> Mac. I expect that OpenGL will be more stable over the different
> platforms as the TCanvas implementation seems to be. However on
> Windows and Ubuntu OpenGL PBO does not win from TCanvas as
> demonstrated here:
> 
> http://wiki.lazarus.freepascal.org/Fast_direct_pixel_access#Speed_comparison
>
>  I was shocked to see this, but I confirmed this results at least on
> windows.
> 

But as you see everywhere in this test, Canvas.Pixels is the slowest always;
Even slower with update locking;

Also seems to me like in Test2 they have the Vertical Scan lock enabled and this
actually may be dependent on driver settings (tip: look at the test app's 
CPU usage during test).

And actually. 
What's the point of creating frames friggilion times per second, if your graphic
card can only display 60fps on most /normal/ nowadays monitors ? (the crt's that were
able to do >=75FPS are gone in most places, there is now TFT's everywhere)
Would it not be a Better Idea (IMHO) to have the frame ready in time for display 
and have the rest of the CPU time available for something else ?

L.





More information about the Lazarus mailing list