• 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: Best solution for game loop on OSX?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best solution for game loop on OSX?


  • Subject: Re: Best solution for game loop on OSX?
  • From: Marcelo Alves <email@hidden>
  • Date: Mon, 16 Dec 2013 22:12:28 -0200

You can use CVDisplayLink (Foundation, OS X) / CADisplayLink (iOS) with pretty good accuracy or a time dispatch timer. The dispatch timer approach is more portable (no changes in your code), a bit cleaner (block based, instead of function pointers in the case of CVDisplayLink), but it is up to you.


> Hello list,
> I am attempting to use OpenAL to move a sound source around. To do so smoothly, though, will require a loop, so I can update the position in small increments many times per second. This is essentially a game loop, so I've done much searching on implementing game loops in Objective-C. There seem to be a few schools of thought on the topic:
>

:: marcelo.alves


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Best solution for game loop on OSX? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Generic Folder icons in Dock
  • Next by Date: Re: Best solution for game loop on OSX?
  • Previous by thread: Re: Best solution for game loop on OSX?
  • Next by thread: Re: Best solution for game loop on OSX?
  • Index(es):
    • Date
    • Thread