Set maximum frame rate in QML Animation
QML and Qt Quick
3
Posts
2
Posters
5.0k
Views
1
Watching
-
Been thinking about this too. I guess a maximum frame rate setting is kind of hard to support. But, if there was a way to control animations so that you could somehow tell the animation how many intermediate values to use, this would be a way to indirectly control the frame rate. Haven't found any way to do that either, though...
-
Had another look at this, and found that QTimeLine (which is used by the animation framework, which I assume is what QML uses for animations) has an updateInterval property, which is the time between two value updates / frames. By default it is 40ms, which gives a frame rate of 25 fps. Sadly, I have not found a way to control the corresponding updateInterval of QML animations.