Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Scene graph not using the OpenGL for rendering in Raspberry Pi 3B+
Forum Updated to NodeBB v4.3 + New Features

Qt Scene graph not using the OpenGL for rendering in Raspberry Pi 3B+

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 733 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harip
    wrote on last edited by harip
    #1

    I was trying to analyze the performance of Qt Quick applications in Raspberry Pi 3B+. To understand the renderer the Qt scenegraph is using by setting the QSG_INFO =1. It was logging the following statement when the application starts:

    qt.scenegraph.general: Loading backend software

    Does it mean the Qt scene graph is not using the open gl render? If it is not using open gl rendering, how can I try to enable the open gl rendering in Raspberry pi 3B+. I have enabled the GL driver in Raspberry Pi 3B+ using the GL driver option in the raspi-config option.
    I have then tried including the QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGL); in main function. But the debug statement remained same.

    I am not able to add the Qt Graphical effects and particle system in the application.(They are not at least visible in the application)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to use the EGLFS plugin, it has best performance on RPi. To do that, you'll probably need to compile Qt yourself. Guides:

      • https://forum.qt.io/topic/99390/cannot-get-configure-script-to-detect-eglfs-rasberry-pi/3
      • https://wiki.qt.io/RaspberryPi2EGLFS

      (Z(:^

      1 Reply Last reply
      2
      • Y Offline
        Y Offline
        YorkChen
        wrote on last edited by
        #3

        I think it is because the QT_QUICK_BACKEND is set to softwarecontext by default. please unset it.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved