summaryrefslogtreecommitdiff
path: root/platform/ios/benchmark/MBXBenchViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/benchmark/MBXBenchViewController.mm')
-rw-r--r--platform/ios/benchmark/MBXBenchViewController.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/ios/benchmark/MBXBenchViewController.mm b/platform/ios/benchmark/MBXBenchViewController.mm
index 21e9ce2d98..67d9b5cb6e 100644
--- a/platform/ios/benchmark/MBXBenchViewController.mm
+++ b/platform/ios/benchmark/MBXBenchViewController.mm
@@ -45,6 +45,7 @@
self.mapView.scrollEnabled = NO;
self.mapView.rotateEnabled = NO;
self.mapView.userInteractionEnabled = YES;
+ self.mapView.preferredFramesPerSecond = MGLMapViewPreferredFramesPerSecondMaximum;
[self.view addSubview:self.mapView];
}
@@ -112,7 +113,7 @@ static const int benchmarkDuration = 200; // frames
idx++;
[self startBenchmarkIteration];
} else {
- [mapView setNeedsGLDisplay];
+ [mapView setNeedsRerender];
}
return;
}
@@ -127,7 +128,7 @@ static const int benchmarkDuration = 200; // frames
started = std::chrono::steady_clock::now();
NSLog(@"- Benchmarking for %d frames...", benchmarkDuration);
}
- [mapView setNeedsGLDisplay];
+ [mapView setNeedsRerender];
return;
}
@@ -139,7 +140,7 @@ static const int benchmarkDuration = 200; // frames
state = State::WarmingUp;
[self.mapView didReceiveMemoryWarning];
NSLog(@"- Warming up for %d frames...", warmupDuration);
- [mapView setNeedsGLDisplay];
+ [mapView setNeedsRerender];
}
return;
}