On Tue, Nov 1, 2011 at 12:14 AM, Krenar Qehaja <[email protected]> wrote:
> On Mon, Oct 31, 2011 at 4:59 PM, Markus <[email protected]> wrote:
>> Does export QML_SHOW_FRAMERATE=1 help?
>
> Thanks Markus, it worked, but only for qmlviewer and not also for qmlscene.

It's not specific to qmlviewer and should work everywhere. Just make
sure you got that environment variable set in the environment where
you run you application. If you use QtCreator, you can set it in the
Project/Run settings.

> Approximately for a second, it prints all this information:
>
> paintEvent: 0 time since last frame: 16
> paintEvent: 0 time since last frame: 16
> paintEvent: 0 time since last frame: 15
> paintEvent: 0 time since last frame: 18
> paintEvent: 0 time since last frame: 13
> paintEvent: 0 time since last frame: 19
> paintEvent: 0 time since last frame: 12
> paintEvent: 0 time since last frame: 16
> paintEvent: 0 time since last frame: 15
> paintEvent: 0 time since last frame: 16
> paintEvent: 0 time since last frame: 16
>
> Do you have any idea how to calculate the Frame-Rate per Second, out of this?

The values you see are milliseconds since the last repaint with the
limited timer resolution available. 1s / 0,016s = 62,5fps. In the
pre-scenegraph era the repaints aren't synchronized to the display
refresh rate so you can't get perfectly smooth animation even if your
scene can be rendered faster than the display refresh rate.

Juha

Juha
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to