Set preferredFramesPerSecond to 1000
This commit is contained in:
1 parent
00660a2c2e
commit
f2ab2d4825
1 file changed
+2
-1
@@ -133,6 +133,7 @@ BOOL shouldTriggerClick = NO;
|
||||
MGLKView *view = glView = (MGLKView *) self.view;
|
||||
view.drawableDepthFormat = MGLDrawableDepthFormat24;
|
||||
view.enableSetNeedsDisplay = YES;
|
||||
view.preferredFramesPerSecond = 1000;
|
||||
|
||||
// Init GLES
|
||||
self.context = [[MGLContext alloc] initWithAPI:kMGLRenderingAPIOpenGLES3];
|
||||
@@ -364,4 +365,4 @@ int touchesMovedCount;
|
||||
[self sendTouchEvent: touches withEvent: ACTION_UP];
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
Reference in new issue
Block a user