[Qt-qml] 60fps QML_SHOW_FRAMERATE and paintevents
Juha.Sarkijarvi at nokia.com
Juha.Sarkijarvi at nokia.com
Fri Jun 10 12:58:15 CEST 2011
Hi,
Have you tried measuring the frame rate in QML utilizing QML_SHOW_FRAMERATE environment variable.
QByteArray data = "1";
qputenv("QML_SHOW_FRAMERATE ", data);
If so, how the generated messages should be interpreted. Here is an example print out that I got.
[Qt Message] paintEvent: 2 time since last frame: 16
[Qt Message] paintEvent: 1 time since last frame: 16
[Qt Message] paintEvent: 2 time since last frame: 16
[Qt Message] paintEvent: 2 time since last frame: 16
[Qt Message] paintEvent: 2 time since last frame: 16
[Qt Message] paintEvent: 2 time since last frame: 16
[Qt Message] paintEvent: 1 time since last frame: 16
[Qt Message] paintEvent: 1 time since last frame: 16
What does the first number mean? If it means the number of paint events, why there are sometimes several paint events? I thought that there would be only one paint event per frame when running 60fps.
Best regards,
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110610/f668a401/attachment.html
More information about the Qt-qml
mailing list