• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pure newbie :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Installing XCode and PB in parallel
  • Next by Date: Re: No man pages when installing xcode?
  • Previous by thread: Re: Pure newbie :(
  • Next by thread: NSPopUpButtonCell?
  • Index(es):
    • Date
    • Thread