Set preferredFramesPerSecond to 1000

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-17 14:34:01 +07:00
1 parent 00660a2c2e
commit f2ab2d4825
1 file changed
+2 -1
+2 -1
View File
@@ -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