[Lazarus] Fast drawing to canvas

Reimar Grabowski reimgrab at web.de
Fri Feb 10 14:01:47 CET 2012


On Fri, 10 Feb 2012 10:44:39 +0100
Sven Barth <pascaldragon at googlemail.com> wrote:

> I then tried to display the pictures using the OpenGLContext. For this I 
> modified your code quite a bit:
> * the images are converted to a "simple image" (a record consisting of 
> width, height and the image data as an array of a record of 3 byte 
> values (red, green, blue))
> * the images are kept in memory (no writing to a cache on disk the use 
> of which I don't really understand...)
> * draw the images to the OpenGLContext
> 
> With this I achieve roughly 25 FPS using the 50% HD images

Man, that's slow for just drawing an image every frame.
I would really be interested how the 'draw the images to the OpenGLContext' part looks like.

R.




More information about the Lazarus mailing list