Re: XForms: animation callback

T.C. Zhao (tc_zhao@yahoo.com)
Thu, 10 Jun 1999 21:31:36 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

If timing is critical, I would suggest use setitimer and
signal. This way, you'll have fairly accurate timing.
Register a SIGALRM handler with xforms, but use direct
handler to do your time sensitive stuff (but not xforms
stuff), then inform
the library using fl_signal_caught(). In the xforms
signal handler, you can do anything you want with xforms.

--- "SHRIDHAR N. DAITHANKAR" <shridhar.daithankar@tatainfotech.com>
wrote:
> # To subscribers of the xforms list from "SHRIDHAR N. DAITHANKAR"
> <shridhar.daithankar@tatainfotech.com> :
>
> #To subscribers of the xforms list from
> Shridhar<shridhar.daithankar@tatainfotech.com>
>
> I have tried a similar thing to display a running waveform that is
> generated by a function. I advice you to try invisible timer as timer
> is
> assured to call it's callback after the preset time. Idle callback
> frequency depends upon the load on the system.
>
> Regards
> Shridhar
>
> On Mon, 7 Jun 1999, Kudah Mushambi wrote:
>
> > # 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/
> >
>
> _________________________________________________
> 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/
>
>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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