From: Richard R. <sf...@ol...> - 2003-09-15 04:07:16
|
On Sun, Sep 14, 2003 at 10:00:21PM -0500, Steve Baker wrote: > James Jones wrote: > >On Sun, 2003-09-14 at 21:35, Richard Rauch wrote: > > > >>A sasmple freeglut application never seems to idle. This is obviously > >>very > >>bad. Can someone confirm in top(1) on GNU/LINUX or FreeBSD? > > Most GLUT/freeglut apps will idle by virtue of calling SwapBuffers and > reading > Xevents. Graphics programs that are not synced to a clock or to the Xevent reading does not halt freeglut. It does halt GLUT. GLUT calls select() in the middle of its event processing (unless there's an idle function, I guess). freeglut *never* does such a thing. Certainly in this way, freeglut differs from GLUT. I hope that my concerns, and/or your message above, are the result of miscommunications. If not, I ask that you reconsider. Busy-waiting is okay for some ends, but you can always set up a glutIdleFunc() if you really want it---and it is a show-stopper for other purposes. I hope that you at least are not adverse to calling this a terrible bug and accepting patches---whether or not you particularly care about fixing the bug. -- "I probably don't know what I'm talking about." http://www.olib.org/~rkr/ |