It is now possible to set fps to save some cpu and battery.

This commit is contained in:
Filippo Scognamiglio
2014-04-03 18:44:23 +02:00
parent 0cef4c75e4
commit e1b8dc0d92
4 changed files with 38 additions and 4 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ ApplicationWindow{
width: parent.width * shadersettings.window_scaling
height: parent.height * shadersettings.window_scaling
scale: 1.0 / shadersettings.window_scaling
clip: false
Image{
id: randtexture
source: "frames/images/randfunction.png"
@@ -99,7 +99,7 @@ ApplicationWindow{
id: timetimer
property real time: 0
onTriggered: time += interval
interval: 16
interval: Math.round(1000 / shadersettings.fps)
running: true
repeat: true
}