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


see src/declarative/util/qdeclarativeview.cpp


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).

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