Add settings option to disable V-sync for lowest possible latency on Windows

This commit is contained in:
Cameron Gutman
2018-08-20 22:25:19 -07:00
parent 7661f5a3d7
commit f9cdd49d2e
4 changed files with 27 additions and 8 deletions

View File

@@ -230,13 +230,26 @@ ScrollView {
}
}
CheckBox {
id: fullScreenCheck
text: "<font color=\"white\">Full-screen</font>"
font.pointSize: 12
checked: prefs.fullScreen
onCheckedChanged: {
prefs.fullScreen = checked
Row {
CheckBox {
id: fullScreenCheck
text: "<font color=\"white\">Full-screen</font>"
font.pointSize: 12
checked: prefs.fullScreen
onCheckedChanged: {
prefs.fullScreen = checked
}
}
CheckBox {
id: vsyncCheck
text: "<font color=\"white\">Enable V-Sync</font>"
font.pointSize: 12
visible: fullScreenCheck.checked
checked: prefs.enableVsync
onCheckedChanged: {
prefs.enableVsync = checked
}
}
}
}