[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: excessively slow image animation
From: |
Alan Third |
Subject: |
Re: excessively slow image animation |
Date: |
Wed, 13 Feb 2019 23:14:59 +0000 |
User-agent: |
Mutt/1.11.2 (2019-01-07) |
On Wed, Feb 13, 2019 at 06:03:51PM +0100, Lars Ingebrigtsen wrote:
> Evgeny Zajcev <address@hidden> writes:
>
> > I've got multi frame image at http://lgarc.narod.ru/giphy.mp4
> >
> > And run next code on it:
> >
> > (let ((ctime (float-time)))
> > (setq img (create-image "~/tmp/giphy.mp4" 'imagemagick nil :scale 1.0))
> > (insert-image img)
> > (cl-dotimes (index 65)
> > (image-show-frame img index 'nocheck)
> > (sit-for 0.0))
> > (- (float-time) ctime))
> > ==> 18.788017988204956
> >
> > 18 seconds to show every frame
>
> Wow, that's slow...
As an aside: for some reason if you run this a second time it doesn’t
use the already cached images from the first run, so it’s just as slow
as that first run. I may be misunderstanding how the cache is supposed
to work, but that doesn’t seem right to me.
--
Alan Third
Re: excessively slow image animation, Daniel Pittman, 2019/02/26