[Qt-qml] 60fps QML_SHOW_FRAMERATE and paintevents
Juha.Sarkijarvi at nokia.com
Juha.Sarkijarvi at nokia.com
Fri Jun 10 13:27:16 CEST 2011
Hi,
Thanks Aaron. This was very helpful. Another question. Why PinchArea generates events at quite random intervals? Sometimes the delay between consecutive pinch event is very huge (probably more than 100ms). It seems that it drops some of the events. Is this issue known? Is there any workaround for this?
-Juha
From: Kennedy Aaron (Nokia-MP-Qt/Brisbane)
Sent: 10. kesäkuuta 2011 14:12
To: Sarkijarvi Juha (Nokia-SD/Tampere)
Cc: qt-qml at qt.nokia.com
Subject: Re: [Qt-qml] 60fps QML_SHOW_FRAMERATE and paintevents
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/a4d92896/attachment-0001.html
More information about the Qt-qml
mailing list