Programming a game
Programming a game
- Subject: Programming a game
- From: Denis Vaillant <email@hidden>
- Date: Sun, 16 Nov 2003 14:06:35 +0100
Hi every one,
I am trying to program a little game in OpenGL : I have a timer which is
running every 1/30s. The timer checks every time keyboard or mouse inputs
and calcutes the new position of the players in the view. Once this is done,
the NSOpenGLView is updated.
My problem is that on slow computers, the view in not updated as fast as the
timer is going and so the players are not moving at the right speed.
The way it should be working (like any game I believe), is that all the
calculations are done within a timer and then, if the processor has free
memory, the view is updated. How can I do that in my code ?
Cheers for your help (as usual :))
Denis
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.