[Qt-qml] 60fps QML_SHOW_FRAMERATE and paintevents

aaron.kennedy at nokia.com aaron.kennedy at nokia.com
Fri Jun 10 13:11:45 CEST 2011


Hi,

On 10/06/2011, at 9:09 PM, "Sarkijarvi Juha (Nokia-SD/Tampere)" <Juha.Sarkijarvi at nokia.com<mailto:Juha.Sarkijarvi at nokia.com>> wrote:

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.
It is the time spent in the QGraphicsViet::paintEvent() call itself.

Cheers,

Aaron

Best regards,
Juha
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com<mailto:Qt-qml at qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110610/34891ca9/attachment.html 


More information about the Qt-qml mailing list