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

QT QML with OpenGL

$
0
0
Hi, I want to know wether my code use OpenGl or not? I am using QT 4.8.1 on iMAX53 board. Freescale GPU driver is loaded on BSP. I have configured QT with opengl ES option. my code is below: class CApplication : public QMainWindow { Q_OBJECT public: QmlApplicationViewer m_ViewObj; /** Holds View object */ } CApplication : CApplication () { // Create GLWidget QGLFormat format = QGLFormat::defaultFormat(); format.setAlpha(true); QGLWidget *glWidget = new QGLWidget(format); glWidget->setAutoFillBackground(true); m_ViewObj.setViewport(glWidget); m_ViewObj.setViewportUpdateMode(QGraphicsView::FullViewportUpdate); m_ViewObj.setSource(QUrl(“qml/appmain.qml”)); show(); } Now, my problem is when first time show function called in consturctor, QGLShader::link: “Link was successful” debug display on console and it will take around 2-3 seconds. which leads very bad performance on boot time. If i disable OpenGL in my program this debug is not displayed on console and show function execute within second. I had done profiling with opengl and without opengl. there is no change on CPU usage without OpenGL. currently I am using only 2D view. So, i want to know, wheter my QML is used OpenGL for rendering or not? if not, then what will be change require to use opengl gpu for performance and how can I reduce boot time by bypassing shader linking. Thanks in advance. Manoj

Viewing all articles
Browse latest Browse all 4972

Trending Articles