XForms: animation callback

Kudah Mushambi (kudah@ugcs.caltech.edu)
Mon, 7 Jun 1999 20:32:52 -0700 (PDT)

# To subscribers of the xforms list from Kudah Mushambi <kudah@ugcs.caltech.edu> :

I'm using xforms to create a gui for an animation I've made. I hope
someone can help with an issue I'm facing.

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.

Can I get redisplay() to be called at a greater frequency?
Is this the right approach, setting an idle callback I mean?

Not ever having made a gui or done any event style programming before, I'm
not sure whether the solution I've come up with is 'correct' or efficient,
so I'd appreciate any response.

thanks,

kuda

_________________________________________________
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/