Re: Is GLUT hindering performance?
Saurabh <[email protected]> Wed, 28 Feb 2007 00:08:25 -0800
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
I don't think this is a GLUT specific problem. I had similar issues with SDL. I realized that it uses up all the CPU cycles in order to maximize the number of frames rendered per second. You can resolve this by limiting the fps by calling some kind of sleep function for some milliseconds after every frame rendered. In SDL, the function for this purpose is SDL_Delay(). Hope this helps. On 2/28/07, Peter Dobrev <[email protected]> wrote: > Hello! > > I was wondering whether using GLUT hinders the performance of the > application in comparison with the plain platform-dependent approach > of creating a window using the OS API. > > What prompted me to write this mail is that I have this fairly simple > program (does some calculations but nothing significant) that takes > 100% CPU. It's quite possible that this maybe due to a bad driver, > since I recently updated to an unstable version of my Linux > distribution. > > But, anyway, do you have any observation on this issue, does GLUT make > the game program slower or the difference (if any) is negligible? > > Thanks, > Petar. > ----- > FAQ and OpenGL Resources at: > http://www.geocities.com/SiliconValley/Hills/9956/OpenGL > > -- > Author: Peter Dobrev > INET: [email protected] > > Fat City Hosting, San Diego, California -- http://www.fatcity.com > --------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an E-Mail message > to: [email protected] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). > ----- FAQ and OpenGL Resources at: http://www.geocities.com/SiliconValley/Hills/9956/OpenGL -- Author: Saurabh INET: [email protected] Fat City Hosting, San Diego, California -- http://www.fatcity.com --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [email protected] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).