Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[solved] Qt Quick 2 performance issues

$
0
0
Hello, I started a new project in which I need to render Qml content on an WQHD display (2560 × 1440). And I’m still trying to get a pretty basic qml test to run fluently. But on the full resolution the rendering performance drops way below 10 fps. The target system runs a AMD G-T56N dual core processor 1,6 GHz 3,5 GiB ram and a dedicated AMD Radeon HD 6310 graphics card. My qml Test is nothing more than this: import QtQuick 2.0   Item {     id: grid_view     width: 800     height: 600       Rectangle {         id: grid_view_bg         anchors.fill: parent           ListModel {             id: employee_model             ListElement { name: "User 1"; }             ListElement { name: "User 2"; }             ListElement { name: "User 3"; }             ListElement { name: "User 4"; }             ListElement { name: "User 5"; }             ListElement { name: "User 6"; }             ListElement { name: "User 7"; }             ListElement { name: "User 8"; }             ListElement { name: "User 9"; }             ListElement { name: "User 10"; }         }         Component {             id: employeeDelegate             Item {                 id:employeeContainer                 width: 180;                 height: 200                 Rectangle {                     id:employeeBody                     anchors.fill: parent                     anchors.rightMargin: 5                     color: "red"                     border.color: "black"                       Rectangle {                         id: employeeHeader                         z:101                         color: "#bbdbf3"                         anchors.horizontalCenter: parent.horizontalCenter                         width: parent.width                         height: 40                         Text {                             anchors.centerIn: parent                             text: '<b>Name:</b> ' + name                         }                         border.color: "black"                       }                 }             }         }         ListView {             anchors.fill: parent             model: employee_model             orientation: Qt.Horizontal             delegate: employeeDelegate         }     } } The main.cpp: QGuiApplication app(argc, argv);       QtQuick2ApplicationViewer viewer;     viewer.setMainQmlFile(QStringLiteral("qml/untitled/main.qml"));     viewer.show(); So I just used the predefined QtQuick 2 Application example to start with. Even on my development system running an intel quad core with dedicated ATI Radeon HD 3450 the performance start to decrease at a 1920 × 1080 resolution. The higher the resolution gets the worse is the performance. At the full WQHD resolution it is just unusable. What might be the problem here ? I would expect that qt is capable of a way better performance than what i get right now. Both cards support at least OpenGL 3 or higher. What can i do to get the qml animation on the list scrolling to run smooth. I could need some help with this one. Thank you for any help.

Viewing all articles
Browse latest Browse all 4972

Trending Articles