Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -5361,25 +5361,9 @@ void Application::loadSettings() { · 5360 unmodified lines | ||
| 5361 | 5361 | } |
| 5362 | 5362 | } |
| 5363 | 5363 | |
| 5364 | − if (_firstRun.get()) { | |
| 5365 | − // If this is our first run, evalute the Platform Tier and assign the matching Performance profile by default. | |
| 5366 | − // A bunch of Performance, Simulation and Render settings will be set to a matching default value from this | |
| 5367 | − | |
| 5368 | − // Here is the mapping between pelatformTIer and performance profile | |
| 5369 | − const std::array<PerformanceManager::PerformancePreset, platform::Profiler::NumTiers> platformToPerformancePresetMap = {{ | |
| 5370 | − PerformanceManager::PerformancePreset::MID, // platform::Profiler::UNKNOWN | |
| 5371 | − PerformanceManager::PerformancePreset::LOW, // platform::Profiler::LOW | |
| 5372 | − PerformanceManager::PerformancePreset::MID, // platform::Profiler::MID | |
| 5373 | − PerformanceManager::PerformancePreset::HIGH // platform::Profiler::HIGH | |
| 5374 | − }}; | |
| 5375 | − | |
| 5376 | − // What is our profile? | |
| 5377 | − auto platformTier = platform::Profiler::profilePlatform(); | |
| 5378 | − | |
| 5379 | − // Then let's assign the performance preset setting from it | |
| 5380 | − getPerformanceManager().setPerformancePreset(platformToPerformancePresetMap[platformTier]); | |
| 5381 | − | |
| 5382 | − } | |
| 5364 | + // Setup the PerformanceManager which will enforce the several settings to match the Preset | |
| 5365 | + // On the first run, the Preset is evaluated from the | |
| 5366 | + getPerformanceManager().setupPerformancePresetSettings(_firstRun.get()); | |
| 5383 | 5367 | |
| 5384 | 5368 | // finish initializing the camera, based on everything we checked above. Third person camera will be used if no settings |
| 5385 | 5369 | // dictated that we should be in first person |