Search code examples
iphonexcodetimercadisplaylink

have multiple CADisplayLink on xcode


I would like to know if it is possible to have two CADisplayLink in an app ?

sorry for my english I'm french


Solution

  • You can just have one CADisplayLink call periodically call one method which then calls the two methods that your two frame sync timers would have called. That way you control the order in which they are called (or potentially use GCD on multi-core devices), or how they are interleaved, etc.