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

QtQuick.Particles even in vary basic testcases consumes GPU and overheats (regression?)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.0, 5.11.0
    • Fix Version/s: None
    • Component/s: Quick: Particles
    • Labels:
      None
    • Environment:

      Description

      Testcase:

      import QtQuick 2.0
      import QtQuick.Particles 2.0
      
      Item {
        width: 1500
        height: 800
        Rectangle {
          color: 'black'
          anchors.fill: parent
        }
        ParticleSystem {
          id: system
          anchors.fill: parent
          visible: false
      
          Emitter {
            id: emitter
            enabled: false
            emitRate: 1
            lifeSpan: 2000
            size: 24
            sizeVariation: 16
            velocity: AngleDirection {angleVariation: 180; magnitude: 150; magnitudeVariation: 260}
            acceleration: AngleDirection {angleVariation: 180; magnitude: 0; magnitudeVariation: 60}
          }
      
          function boom(count) {
            visible = true;
            emitter.enabled = true;
            emitter.burst(count);
            emitter.enabled = false;
          }
      
          // GPU is being eaten like crazy even if this line is commented out
          Component.onCompleted: boom(100)
      
          ItemParticle {
            delegate: Rectangle {
              color: 'red'
              width: 4
              height: 4
            }
          }
        }
      }
      

      Note that that happens even without calling `boom`, even with disabled emitter.
      The same could be reproduced with `CustomParticle` instead of `ItemParticle`.
      Basically everything valid with a ParticleSystem was affected in my observations.

      GPU usage observed by both `intel_gpu_top` (>60% gpu usage) and noticeable notebook overheating (and fan noise).

      Note that the effect depends on the size of the window, so to make this more noticeable — maximize the window (though that is not required).

      Attached are both the testcase and a trace of OpenGL calls.
      The issue could be also reproduced with `glretrace qml.slow.trace`.

        Attachments

        1. qml.slow.trace
          812 kB
        2. slow.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            w00t Robin Burchell
            Reporter:
            chalker Сковорода Никита
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes