From rock88: Set max FPS to 60 instead of default 30 on iOS.

This commit is contained in:
Sacha 2013-03-15 12:30:40 +10:00
parent 5091c7aae2
commit 6a9e2e559c

View file

@ -80,6 +80,7 @@ ViewController* sharedViewController;
view.context = self.context;
view.drawableDepthFormat = GLKViewDrawableDepthFormat24;
[EAGLContext setCurrentContext:self.context];
self.preferredFramesPerSecond = 60;
float scale = [UIScreen mainScreen].scale;
CGSize size = [[UIApplication sharedApplication].delegate window].frame.size;