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@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.sarkija...@nokia.com<mailto:juha.sarkija...@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@qt.nokia.com<mailto:Qt-qml@qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to