Re: GtkImage animation performance



On Wed, 30 Mar 2005 19:37:16 +0300, Komulainen Tommi
(Nokia-M/Helsinki) <tommi komulainen nokia com> wrote:
> I was wondering if there were some good reasons for animations to go
> through the whole redraw queuing all the time?  Couldn't the next frame
> be drawn directly instead?

I'm not a gtk guru, but my guess would be that decoupling the timeout
and the redraw makes it easy to drop frames if the processor is too
slow for the animation. Also, gtk's double buffering will only work
well if drawing is restricted to just the "expose" handler.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]