[Lazarus] Fast drawing to canvas

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Fri Feb 10 23:16:34 CET 2012


On Feb 10, 2012, at 9:45 PM, Hans-Peter Diettrich wrote:

> Darius Blaszyk schrieb:
>>>> Yes, I'm playing movie clips. But playing back images from a
>>>> video codec is besides the point.
>>> If you say so, but that is exactly what you are doing.
>> I know :) The streaming is actually pretty fast. Tests have shown
>> that I'm able to get almost 90fps (for the complete drawing cycle) on
>> 50%HD on windows which is perfect. However the same loop drops down
>> to 11fps on mac. So the problem lies not in the streaming but in the
>> drawing bit.
> 
> The problem may be multiple files. I'd try to merge multiple frames, if not all, into one big file, then test again on mac.
> 
> DoDi
Well I'm already doing that in filecache.pas. It's just one big file-stream with raw pixel data in it. See also my previous mail where I mention the possibility to compress data. It will be a tradeoff between (de)compression and file access.

Regards, Darius





More information about the Lazarus mailing list