Home > Fresh News > FPS counter for QML application

FPS counter for QML application

December 10th, 2010 Leave a comment Go to comments

QML_SHOW_FRAMERATE variable can be used for performance information. It prints the time spent each frame to the console.

additional info

DEFINE_BOOL_CONFIG_OPTION(frameRateDebug, QML_SHOW_FRAMERATE)

see src/declarative/util/qdeclarativeview.cpp

using:

...
if (frameRateDebug())
{
// do something
}

Also this variable can be set in Qt Creator (see the “Run Environment” subsection in the project’s “Run Settings” tab).

Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.