mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 20:38:37 +02:00
Improved FPS.
Fixed some comments.
This commit is contained in:
parent
ae198ea1ee
commit
22be7d1b37
1 changed files with 123 additions and 8 deletions
|
@ -37,6 +37,7 @@ Rectangle {
|
||||||
|
|
||||||
// Graphics
|
// Graphics
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: graphics_page
|
||||||
width: parent.width - 10
|
width: parent.width - 10
|
||||||
visible: current_page == "Graphics"
|
visible: current_page == "Graphics"
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
@ -133,12 +134,13 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// FPS
|
// FPS
|
||||||
RowLayout {
|
RowLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Max FPS"
|
text: "Refresh Rate"
|
||||||
color: "white"
|
color: "white"
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width - 150
|
width: parent.width - 150
|
||||||
|
@ -146,11 +148,124 @@ Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
ComboBox {
|
||||||
Layout.maximumWidth: 50
|
id: refresh_rate_cb
|
||||||
id: max_fps
|
currentIndex: 3
|
||||||
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
Layout.fillWidth: true
|
||||||
validator: RegExpValidator { regExp: /[0-9]*/ }
|
model: ListModel {
|
||||||
|
ListElement { text: "Economical" }
|
||||||
|
ListElement { text: "Interactive" }
|
||||||
|
ListElement { text: "Real-Time" }
|
||||||
|
ListElement { text: "Custom" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FIXME: Height is hardcoded
|
||||||
|
// FPS sub options
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: refresh_rate_cb.currentIndex == 3
|
||||||
|
height: 75 * 3
|
||||||
|
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "#333333"
|
||||||
|
height: parent.children[1].height
|
||||||
|
width: parent.width
|
||||||
|
}
|
||||||
|
|
||||||
|
GridLayout {
|
||||||
|
columns: 2
|
||||||
|
width: parent.width - 10
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
height: 75 * 3
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Focus Active"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Focus Inactive"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Unfocus"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Minimized"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Startup"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
Text {
|
||||||
|
text: "Shutdown"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
width: 100
|
||||||
|
Layout.maximumWidth: 50
|
||||||
|
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||||
|
validator: RegExpValidator { regExp: /[0-9]*/ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +310,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: parent.children[2].value.toFixed(1)
|
text: parent.children[2].value.toFixed(0)
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +323,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Graphics Presets
|
// Anti Aliasing
|
||||||
RowLayout {
|
RowLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue