mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:03:12 +02:00
BUGZ-447: New performance preset API
This commit is contained in:
parent
987d5e7662
commit
8e5c94abb0
1 changed files with 10 additions and 10 deletions
|
@ -101,7 +101,7 @@ Flickable {
|
||||||
|
|
||||||
HifiStylesUit.GraphikRegular {
|
HifiStylesUit.GraphikRegular {
|
||||||
id: performanceTitle
|
id: performanceTitle
|
||||||
text: "Performance"
|
text: "Graphics Preset"
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
height: paintedHeight
|
height: paintedHeight
|
||||||
size: 22
|
size: 22
|
||||||
|
@ -115,28 +115,28 @@ Flickable {
|
||||||
|
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceLow
|
id: performanceLow
|
||||||
text: "Eco"
|
text: "Low"
|
||||||
checked: Performance.getRefreshRateProfile() === RefreshRate.ECO
|
checked: Performance.getPerformancePreset() === PerformacePreset.LOW
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setRefreshRateProfile(RefreshRate.ECO);
|
Performance.setPerformancePreset(PerformacePreset.LOW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceMedium
|
id: performanceMedium
|
||||||
text: "Interactive"
|
text: "Medium"
|
||||||
checked: Performance.getRefreshRateProfile() === RefreshRate.INTERACTIVE
|
checked: Performance.getPerformancePreset() === PerformacePreset.MID
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setRefreshRateProfile(RefreshRate.INTERACTIVE);
|
Performance.setPerformancePreset(PerformacePreset.MID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceHigh
|
id: performanceHigh
|
||||||
text: "Realtime"
|
text: "High"
|
||||||
checked: Performance.getRefreshRateProfile() === RefreshRate.REALTIME
|
checked: Performance.getPerformancePreset() === PerformacePreset.HIGH
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setRefreshRateProfile(RefreshRate.REALTIME);
|
Performance.setPerformancePreset(PerformacePreset.HIGH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue