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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to