OK so does anyone have a clue as to why an extremely simple GLUT
project runs way too fast on any Mac running OS 10.3 yet on my PC
(256MB vram, Athlon XP 3200, WinXP Pro) it runs at what appears to be
the "right" speed? I've uploaded the small Xcode project
(http://www.kainjow.com/opengl/Kube.zip - 12KB) if anyone would be so
kind as to compile it and let me know if it's running too fast for
them too (original code
fromhttp://www.cosc.brocku.ca/Offerings/3P98/course/MSVC/
msvcnetglut.html).
Your PC is probably doing software rendering and the Mac is just
calling the idle func a lot since it is doing hardware rendering. A
lot of the classic glut apps are guilty of doing that, they worked
well when they were written but the HW is a hundred or more times
faster now.
I looked at your code and if you want the speed to be regular, you
coul look at doing glutTimerFunc to get frames on a regular basis
instead of glutIdleFunc. Something like changing this
glutIdleFunc(drawcube) to this glutTimerFunc(100, timer, 0); and
adding this timer func:
void timer(int value)
{
glutPostRedisplay();
glutTimerFunc(100, timer, 0);
}
Kent
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden