[Lazarus] Fastest way to draw

Brad Campbell brad at wasp.net.au
Fri May 21 16:37:36 CEST 2010


Mattias Gaertner wrote:
> As memory image you can use TBitmap which has comfortable fonts, but
> is not the fastest.
> 
> Or you can use fpcanvas (it comes with fpc). See here
> http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Drawing_without_LCL
> You can tune it quite a lot. 
> 
> If you use lazarus 0.9.29 you can use aggpas. The package can be found
> in lazarus/components/aggpas. For examples in
> components/aggpas/lazarus/example/AggPasInLCLDemo1.lpi.
> Aggpas is completely written in pascal, quite fast and the results are
> the same on all platforms (as always: fonts are a problem).
> 
> And finally you can use opengl - for example via the TOpenglControl.

Cheers for all that Mattias. I appreciate then leads. aggpas looks really cool. I'll get it 
benchmarked against my current stuff in the next day or so.

>> Has anyone done anything similar?
> 
> No. You are the first.

Righto, I'll be sure to post my code when I've got it fast enough then.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.




More information about the Lazarus mailing list