[Qt-qml] jerky animation when using NumberAnimation

Eduardo Fleury eduardo.fleury at openbossa.org
Fri Sep 17 01:00:09 CEST 2010


Hi,

The thing here is that the fixed framerate of Qt animations is 60 fps. For
most uses this is fine, but if you are trying to move something very fast
this might be a little bit too slow.

I've tweaked your example a little bit in order to keep the same vertical
movement speed regardless of the animation method. I also added buttons so
you can fire it up and:

(1) Toggle between NumberAnimation or Timer animations
(2) Change the framerate (only available with the timer animation)

In my system I had the following result:
- If the screen is large enough there's a noticeable difference between the
timer animations in 60, 120 and 250 Hz.
- Running the timer animation at 60 fps looks like the same thing as using
the standard Qt animation

I didn't try recompiling Qt with different default framerate, but it should
give the same results.

-- 
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100916/35b9407f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: framerate.qml
Type: application/octet-stream
Size: 2505 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100916/35b9407f/attachment.obj 


More information about the Qt-qml mailing list