I am using OpenGL ES to render a scene on a CADisplayLink with:
self.displayLink = CADisplayLink(target: self, selector: #selector(self.updateOpenGL))
self.displayLink!.frameInterval = 1
self.displayLink!.addToRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
If I background the app and go to the Spring Board, when I resume the app, the rendering continues.
But if I background the app, open another app such as Calendar, when I bring the app back to the foreground, there is no more rendering to the screen. If I pause the execution with Xcode, or stop at a breakpoint in the rendering pipeline, the DisplayLink is still running and executing my OpenGL rendering code.
Any ideas why?