I've been building an OpenGL based app using GLKView, with a render method being triggered by CADisplaylink.
So far so good, at least on the simulator.. But when I run it on a physical device, my update routine is only fired once - at startup.
I understand there are many differences between the simulator and a physical device, but I'm hoping someone can shed some light on any that are specific to the CADisplaylink and what might cause it to not fire?
My setup is along these lines:
view.enableSetNeedsDisplay = NO;
CADisplayLink* displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(render:)];
displayLink.frameInterval=1;
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];