Greg Ercolano wrote: > Michael Surette wrote: >> My program has a loop like so >> >> while ( doSomething() ) ; >> >> doSomething does some calculations and may change the display, but I >> can't see the changes until the loop exits. > > You want to put Fl::check() inside your loop. See: > http://fltk.org/doc-1.3/classFl.html#1dbb83f1d52001c152ccf8415e3ee6f0 >
Thanks, that works much better now. It still doesn't work quite the way I'd like. It seems to gather events and process them in groups rather than process them on each iteration. In my test case there are 53 unevenly timed iterations which take a total of about two seconds and I see three distinct screen updates. If I put in Fl::wait() instead and move the mouse over the screen, I notice more updates in roughly the same time. I'll have to play with this a bit more to find the setup I like best. Any more comments or suggestions would be welcome. Mike _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

