CADisplayLink running lower frame rate on iOS5.1
问题 I'm using CADisplayLink in my iPhone app. Here is the relevant code: SMPTELink = [CADisplayLink displayLinkWithTarget:self selector:@selector(onTick)]; SMPTELink.frameInterval = 2;//30fps 60/n = fps [SMPTELink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; onTick is thus called every frame of 30FPS (1/30th of a second). This works GREAT on iOS6 + - does exactly what I need. However, when I ran my app on an iPhone 4s running iOS5.1, the onTick method ran slightly slower