Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt QML running slow
Qt 6.11 is out! See what's new in the release blog

Qt QML running slow

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 3 Posters 5.8k Views 2 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.
  • A Offline
    A Offline
    Anny
    wrote on last edited by A Former User
    #1

    Hi,

    I am using olimex board with linux os. I have created qt qml desktop application using qt 5.3.2. My application needs to update qml gui on every 100 ms but it takes 2-3 secs to update it as well as when Button is clicked it takes 4-5 sec to change the color of button or change the image. Overall working of qml UI is too slow . How can make it more fast? Is there any way to do this?

    Regards

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

      Make sure you are running hardware-accelerated OpenGL. From your description I presume your app is running on Mesa drivers (where all OpenGL is computed by main CPU instead of the GPU). Also, try using EGLFS (just in case you run on xcb platform plugin).

      Lastly, if only possible, upgrade your Qt version. Between 5.3 and 5.9 there have been a ton of big performance optimisations in Qt.

      (Z(:^

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Anny
        wrote on last edited by
        #3

        Hi Sierdzio,

        It does not look like running on hardware accelerated openGL, what are the other options to make this qml faster?

        Regards

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4
          • Avoid Javascript as much as possible
          • Do as much as possible in C++
          • Reduce the number of QtQuick items used
          • Set visible to false for all elements that aren't used at the moment
          • Update from QtQuick controls 1 to version 2
          • Don't use clipping
          • Don't use transparency
          1 Reply Last reply
          0
          • A Offline
            A Offline
            Anny
            wrote on last edited by
            #5

            Hi Wieland ,

            I am using C++ as much as possible and also removed unnecessary QtQuick items.
            I need to use transparency for few items.
            My QtQuick version is 2. Still it is running slow

            Regards

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @Anny said in Qt qml running slow:

              My QtQuick version is 2

              The import part is to use Qt Quick Controls version 2 that was introduced with Qt 5.6, see Qt Quick Controls 2.0 – a new beginning! for an introduction. BTW: What Olimex board is that exactly?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Anny
                wrote on last edited by
                #7

                my QtQuick verison is 2 and QTQuick controls version is 1 , I will try to update quick controls to version 2 .

                @Wieland said in Qt qml running slow:

                What Olimex board is that exactly?

                olimex a20lime2 is a development board.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Anny
                  wrote on last edited by
                  #8

                  @sierdzio you were right it was because of hardware acceleration was not activated. Since I have activated hardware acceleration this issue is solved .

                  Thank you

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

                    Great, it's good to hear that. Happy coding!

                    (Z(:^

                    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