I create a GLKViewController
like this:
// Create a GLK View Controller to handle animation timings
_glkVC = [[GLKViewController alloc] initWithNibName:nil bundle:nil];
_glkVC.preferredFramesPerSecond = 60;
_glkVC.view = self.glkView;
_glkVC.delegate = self;
_glkVC.paused = YES;
NSLog(@"initial state: %@", _glkVC.paused ? @"paused" : @"running");
but it immediately starts calling the delegate update method and the output from the NSLog
above is: initial state: running
I am managing my view updates with setNeedsDisplay
but I want the GLKViewController
to handle animations from time to time so I want to unpause it only when needed. Is there a way to start the controller in a paused state?