Re: XForms: animation callback

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 8 Jun 99 06:44:00 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> At the start of the program, I register a redisplay callback with
> fl_set_idle_callback(). redisplay() decides whether to send a frame to the
> screen or not. I have data for every 50ms, but by using
> fl_set_idle_callback(), redisplay() will be called every from 50ms to
> 300ms (according to documentation). Currently the animation runs about 1/3
> as fast as it should. I would really like to display the animation in
> realtime.

Have you tried changing the idle callback delta? The function
fl_set_idle_delta() should allow you to set the idle callback interval
to whatever you want.

You can also use a timeout callback. Refer to the manual discussion
of fl_add_timeout().

Both of these methods are subject to the granularity of your system
clock and process load, as is the FL_TIMER object suggested by another
poster.

Getting precise interval timing on a Unix system is problematic, given
the manner in which processes are dispatched from the run list.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/