Re: Pure newbie :(
Re: Pure newbie :(
- Subject: Re: Pure newbie :(
- From: Denis Vaillant <email@hidden>
- Date: Wed, 12 Nov 2003 01:48:42 +0100
Thx for all your answers : now I know exactly what is a float and the way it
is behaving ;)
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.