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. QQuickFramebufferObject eats CPU and battery as a horse
QtWS25 Last Chance

QQuickFramebufferObject eats CPU and battery as a horse

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qquick fboframebuffercpuhorse
6 Posts 2 Posters 2.1k Views
  • 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.
  • D Offline
    D Offline
    Dmitry87
    wrote on 4 Apr 2016, 07:39 last edited by Dmitry87 4 Apr 2016, 07:42
    #1

    I'm trying to implement a OpenGL item in QML using QQuickFramebufferObject . I noticed that QQuickFramebufferObject eats CPU like a horse even if render function is not implemented. The CPU core usage is always 100% and in addition to that it eats battery very fast. If there are 3-4 such items, the programm begins to lag ( Windows 7 Core i7). The same problem is in the Scene Graph - Rendering FBOs example. How can I take updating under control?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Apr 2016, 21:33 last edited by
      #2

      Hi and welcome to devnet,

      You should also add which version of Qt your are using.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dmitry87
        wrote on 5 Apr 2016, 06:25 last edited by Dmitry87 4 May 2016, 06:26
        #3

        Kubuntu 14 Qt5.5; Windows 7 Qt5.3.1 & Qt5.4 (tested on 2 PC's) ), Android 4.2.1. One core is always 100% (even in idle state), but when I disable FB item, the usage is 0%

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 5 Apr 2016, 11:36 last edited by
          #4

          Hi,

          Then you should consider upgrading to 5.6 IIRC, there was some work done on the performance side.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dmitry87
            wrote on 7 Apr 2016, 06:36 last edited by
            #5

            Unfortunately 5.6 has the same bug. In addition to that it spams this message: "libpng warning: iCCP: known incorrect sRGB profile" and sometimes crashes with: "QQmlEngine: Illegal attempt to connect to QQmlDMAbstractItemModelData(0x332dc7b8) that is in a different thread than the QML engine QQmlEngine(0x198f870.", this happens in a single-threaded application.

            Well, seems QML is just not for portable devices.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 7 Apr 2016, 20:29 last edited by
              #6

              The libpng warning comes from libpng, nothing Qt can do about it.

              The QML engine crash is unrelated to libpng warning.

              Can you reproduce this crash with a simple app ?

              What do you mean by portable devices ? QML applications run on the RPi, BeagleBoneBlack, i.MX boards or iOS and android based phone.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              4 Apr 2016, 07:39

              • Login

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