Re: About gtk_timeout_add



Paul wrote:

Hi, All

   i want to write an animation program with maximum frame rate 30. So
i use
gtk_timeout_add(1000/30, (GtkFunction)animate, 0) to call animation
function every 1/30 second. But the animation function is called only
about 17 times/second.

i fear, that us the best one can get from gtk_timeout(). AFAIK it is
driven from the sheduler and so resolution is limited to what the os
provides (i.e.: linux 10ms).

hope this is correct ...
clemens




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