Re: Best solution for game loop on OSX?
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