> My question is, in my typical programs (physics simulations), > interactivity is extremely limited, essentially I want to treat the > window as a canvas on which I am drawing, possibly displaying the values > of a few relevant parameters in Fl_Output's, and which updates itself on > screen every 50 ms or so. I am calling redraw() by hand for > that.
50 ms are fast enough to make the GUI feel fluid, I think you even can double this value. The event-loop Fl::run() can be replaced by while (Fl::check()) Fl::wait(); When the wait-time is defined by another part of software Fl::check() remains - it tells true, as long there is a window visible. When you call this periodically within the main thread (be aware not to call Fl::check() from worker threads!) the GUI will work fine. Also you should call Fl::check() after calling redraw() by hand - redraw() tells check() to update the GUI. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

