[ios] fix benchmark app

This commit is contained in:
Konstantin Käfer
2019-06-12 17:25:31 +02:00
parent c2fb3cc76f
commit d372124219
2 changed files with 9 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;