mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
adjust the preset options
This commit is contained in:
parent
987d5e7662
commit
916ff31cf6
4 changed files with 6 additions and 2 deletions
|
@ -57,7 +57,9 @@ void PerformanceManager::applyPerformancePreset(PerformanceManager::PerformanceP
|
|||
qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::ECO);
|
||||
|
||||
break;
|
||||
case PerformancePreset::UNKNOWN:
|
||||
default:
|
||||
// Do nothing anymore
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
class PerformanceManager {
|
||||
public:
|
||||
enum PerformancePreset {
|
||||
LOW = 0,
|
||||
UNKNOWN = 0, // Matching the platform Tier profiles enumeration for coherence
|
||||
LOW,
|
||||
MID,
|
||||
HIGH,
|
||||
PROFILE_COUNT
|
||||
|
|
|
@ -28,7 +28,7 @@ PerformanceScriptingInterface::PerformancePreset PerformanceScriptingInterface::
|
|||
}
|
||||
|
||||
QStringList PerformanceScriptingInterface::getPerformancePresetNames() const {
|
||||
static const QStringList performancePresetNames = { "Low", "Mid", "High" };
|
||||
static const QStringList performancePresetNames = { "Unknown", "Low", "Mid", "High" };
|
||||
return performancePresetNames;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
LOW = PerformanceManager::PerformancePreset::LOW,
|
||||
MID = PerformanceManager::PerformancePreset::MID,
|
||||
HIGH = PerformanceManager::PerformancePreset::HIGH,
|
||||
UNKNOWN = PerformanceManager::PerformancePreset::UNKNOWN,
|
||||
};
|
||||
Q_ENUM(PerformancePreset)
|
||||
|
||||
|
|
Loading…
Reference in a new issue