mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +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);
|
qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::ECO);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case PerformancePreset::UNKNOWN:
|
||||||
default:
|
default:
|
||||||
|
// Do nothing anymore
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
class PerformanceManager {
|
class PerformanceManager {
|
||||||
public:
|
public:
|
||||||
enum PerformancePreset {
|
enum PerformancePreset {
|
||||||
LOW = 0,
|
UNKNOWN = 0, // Matching the platform Tier profiles enumeration for coherence
|
||||||
|
LOW,
|
||||||
MID,
|
MID,
|
||||||
HIGH,
|
HIGH,
|
||||||
PROFILE_COUNT
|
PROFILE_COUNT
|
||||||
|
|
|
@ -28,7 +28,7 @@ PerformanceScriptingInterface::PerformancePreset PerformanceScriptingInterface::
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList PerformanceScriptingInterface::getPerformancePresetNames() const {
|
QStringList PerformanceScriptingInterface::getPerformancePresetNames() const {
|
||||||
static const QStringList performancePresetNames = { "Low", "Mid", "High" };
|
static const QStringList performancePresetNames = { "Unknown", "Low", "Mid", "High" };
|
||||||
return performancePresetNames;
|
return performancePresetNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ public:
|
||||||
LOW = PerformanceManager::PerformancePreset::LOW,
|
LOW = PerformanceManager::PerformancePreset::LOW,
|
||||||
MID = PerformanceManager::PerformancePreset::MID,
|
MID = PerformanceManager::PerformancePreset::MID,
|
||||||
HIGH = PerformanceManager::PerformancePreset::HIGH,
|
HIGH = PerformanceManager::PerformancePreset::HIGH,
|
||||||
|
UNKNOWN = PerformanceManager::PerformancePreset::UNKNOWN,
|
||||||
};
|
};
|
||||||
Q_ENUM(PerformancePreset)
|
Q_ENUM(PerformancePreset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue