I have a QML based Qt UI application, that plays audio. The application was developed using Qt 4.x and has import QtQuick 1.0
statements in all the QML files. I tried to calculate the FPS for the application by deriving from QDeclarativeItem
class and implementing paint(QPainter *)
function. The FPS was around 60.
Later, I ported the same application to use QtQuick 2.0
. It has import QtQuick 2.0
statements in the QML files and some other changes required to run the application using QtQuick 2.0
. Again, I tried to calculate the FPS for the application by deriving from QQuickPaintedItem
and implementing paint(QPainter *painter)
function. The FPS calculated is again around 60.
I expected the first application based on QtQuick 1.0 to have lesser FPS compared to the second application. But, it was not. Is this behavior expected? I do not have any OpenGL calls in my application. The application has just normal QML components like, Rectangle, Item, Image
.
My FPS calculation method is based on the solution in another thread Show FPS in QML