[Lazarus] Fast GUI
Michael Schnell
mschnell at lumino.de
Mon Nov 30 12:39:31 CET 2015
On 11/30/2015 12:26 PM, Aradeonas wrote:
> I need controls that has animations and images that need to be fast
> in painting.
> I checked everything I know, the best result for graphical function is
> BGRABitmap but it is slow for high resolution painting so the best
> result I can get is with OpenGL and hardware and now I made it work.
> LCL for standard jobs is very good but if you want animations or fast
> painting it use much CPU and flicker and ... .
> So the best thing I can guess is hardware acceleration for specific
> jobs but I want to ask if you know one or is it sane or not .
>
The normal GUI functions do use the hardware acceleration as they
should. so no chance for a great improvement here.
The only way is multithreading to use multiple CPUs in parallel.
In fact we (company) do this using Delphi.
But Lazarus (or Delphi) can't do this on their own. So we did Flash
animations (-> https://en.wikipedia.org/wiki/Flash_animation ) and have
the flash player (dll) display them in appropriate rectangles placed in
the normal GUI of the program.
A lot of work creating this (especially as supposedly will you need a
realtime communication to feed your flash windows with new data), bu7t
the result is excellent.
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151130/f8193bcb/attachment-0003.html>
More information about the Lazarus
mailing list