Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49172

Render-to-texture widgets leave GL-based compositing enabled forever

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0 Alpha
    • Fix Version/s: 5.6.0 RC
    • Component/s: GUI: OpenGL, GUI: Painting
    • Labels:
      None
    • Commits:
      7c6625b105511191f739d07dc658094ff6f682ac

      Description

      QtCreator since 3.5 and Qt 5.5 uses OpenGL every time, because Welcome Page uses QQuickWidget instead of QQuickWindow by default. This results in a significant decrease in performance and compatibility issues. Older versions uses OpenGL only on Welcome Page - this doesn't affect the source code editor and QtWidgets designer.
      And second thing: I know that QML designer and QML profiler uses OpenGL, but QML profiler shouldn't be selected by default in non-QML project, because it also forces whole QtCreator to use OpenGL. Many users don't know why QtCreator slows down or why it has graphical glitches, they just says that it is normal that new software is slower.
      This bug can be relative to: QTCREATORBUG-15084.

      The attachment contains four screens (I chose old laptop (C2D 2x2GHz, old Intel GPU), because it can show the issue better):

      • QtCreator-deceleration-CPU.png - OpenGL, the CPU load during scrolling up and down many lines of C++ code (about 100% CPU core usage),
      • QtCreator-deceleration-GPU.png - OpenGL, huge GPU usage, the same sa above,
      • QtCreator-no-opengl-CPU.png - no-OpenGL, CPU core usage is ~75% during the same operation as in first screen,
      • QtCreator-no-opengl-GPU.png - no-OpenGL, GPU is not used by raster paint engine, and it can be much faster than OpenGL for rendering 2D!

      Raster engine was smoother during scrolling.
      Since the newest version I must disable the Welcome Page, because I don't like unnecessary glitches slows down.

      Using new Qt features I noticed, that OpenGL is for rotating, scaling and 3D, not for 2D, and it always slows down not matter how the PC is fast.

        Attachments

        1. QtCreator-deceleration-CPU.png
          28 kB
          Błażej Szczygieł
        2. QtCreator-deceleration-GPU.png
          39 kB
          Błażej Szczygieł
        3. QtCreator-no-opengl-CPU.png
          24 kB
          Błażej Szczygieł
        4. QtCreator-no-opengl-GPU.png
          38 kB
          Błażej Szczygieł

          Issue Links

          For Gerrit Dashboard: QTBUG-49172
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              zaps166 Błażej Szczygieł
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes