On 8 Feb 2012, at 20:23, Greg Ercolano wrote: > On 02/08/12 09:50, Greg Ercolano wrote: >> I'll take a stab at a cleanup. >> I /think/ I can take out all the glut stuff and make it use >> Fl::run(). > > Done; see below. > > Took out all the glut; pure FLTK app now. > Uses Fl::run(), handle() for key events, etc. > Possibly rushed; have to get back to work.. some eyes to check it > would be good. Could probably use more attention to removing globals. > > Tested on linux (Cenos5.6), OSX (SnowLep), and Windows (w/2005 express). > > I get 99fps on linux + osx (both running on similar Mac Mini hardware) > and around 64fps on windows running on an old 2GHz AMD64 box with > probably crappy onboard graphics.
OK - that works nicely for me, too. On this Mac (10.6.8 quad-core iMac) I get ~98 FPS, whilst a linux VM (ubuntu 11.10) gets a solid 100 FPS on the same machine... Don't have a WinXX box to hand... The Windows box giving 64 FPS sounds a lot like what I was seeing - I do wonder if there is something about the way the Windows timers work (or the way we are using them in add/repeat_timeout() anyway) that somehow causes that? > Made it more or less conforming to the CMP. > With FLTK headers/footers, it'd probably be ready for svn. > > +1 to add it to FLTK test directory. Yes, I think so, +1 for adding to test folder, after folk have looked it over. Though fltk headers might be awkward given the provenance of the original material? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

