[ios] fix benchmark app
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -3911,6 +3911,7 @@
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
DEVELOPMENT_TEAM = GJZR2MEM28;
|
||||
HEADER_SEARCH_PATHS = "$(mbgl_core_INCLUDE_DIRECTORIES)";
|
||||
INFOPLIST_FILE = "$(SRCROOT)/benchmark/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.bench;
|
||||
@@ -4527,9 +4528,11 @@
|
||||
};
|
||||
DABCABBC1CB80692000A7C39 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 55D8C9941D0F133500F42F10 /* config.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
DEVELOPMENT_TEAM = GJZR2MEM28;
|
||||
HEADER_SEARCH_PATHS = "$(mbgl_core_INCLUDE_DIRECTORIES)";
|
||||
INFOPLIST_FILE = "$(SRCROOT)/benchmark/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.bench;
|
||||
@@ -4539,9 +4542,11 @@
|
||||
};
|
||||
DABCABBD1CB80692000A7C39 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 55D8C9941D0F133500F42F10 /* config.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
DEVELOPMENT_TEAM = GJZR2MEM28;
|
||||
HEADER_SEARCH_PATHS = "$(mbgl_core_INCLUDE_DIRECTORIES)";
|
||||
INFOPLIST_FILE = "$(SRCROOT)/benchmark/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.bench;
|
||||
|
||||
Reference in New Issue
Block a user