OpenGL/GLUT

kainjow

Registered
I'm trying out this GLUT example found at http://www.cosc.brocku.ca/Offerings/3P98/course/MSVC/msvcnetglut.html on my G5 and it runs extremely fast compared to the identical code running on my PC running Windows XP.

I've noticed on the Mac app that when I have a menu enabled, the app runs exactly the normal speed like the PC. But as soon as I release from a menu and just leave the app as the front application, it goes wild.

Anyone know something basic that I need to do on the Mac to get it to perform normal speed??
 
All it does is draw a cube. It should be fast. If not, I'd be worried :).

You need to set the angle to something smaller. Use 0.01 instead and set the mouse callback function to increment angle by 0.01 instead. This solves the problem.
 
Back
Top