PDA

View Full Version : glut performance



sbayeta
09-03-2005, 12:54 PM
Hi,

I compiled two programs from two different tutorials, one using GLUT and one using win32 windowing, and I noticed that even though they render almost nothing, the GLUT one is very slow when I try to move the window around.

The code for the tutorials can be found online:
GLUT: http://www.lighthouse3d.com/opengl/glut/index.php?2
Win32: http://nehe.gamedev.net/data/lessons/vc/lesson01.zip

Can anyone tell me what's going on?

Thanks a lot.

infinitecmdz
09-07-2005, 10:06 AM
hello there,

Although I'm new here, I've used ogl with vc++ and glut. Glut is a toolkit developed by mark kilgard for beginners to learn ogl.As Ogl is a cross platform independant, it does not have any interfaces like I/O for any particular OS. So we can use it with any language. Glut provides easy interfaces for the user , so that the user does not have any problems and headaches with programming each and every message that windows sends to the app. Glut is inefficient in this regard as it aint a full time commercial product. Vc++ on the other hand has excellent optimization at its hands during compilation and hence it runs the app more efficiently.

IntergalacticPlanetary
09-07-2005, 11:44 AM
It's like the comparison of java and c/c++. Because java is platform independent and runs on a virtual machine it has a little more overhead and gets a performance hit, whereas c/c++ has more direct link with the harware. Same with GLUT...using WGL or the mac library(AGL?) interfaces more directly with the machine.