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. qml opacitymask generates high CPU load (100%)

qml opacitymask generates high CPU load (100%)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.5k 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.
  • T Offline
    T Offline
    themts
    wrote on last edited by
    #1

    Hi,

    If I use the opacitymask (windows, qt 5.5 or qt 5.6) it uses a complete core.
    Is there any workaround for this bug?
    Can I use something similar to the opacitymask without this bug?

    CU
    mts

    1 Reply Last reply
    0
    • T Offline
      T Offline
      themts
      wrote on last edited by
      #2

      Has nobody seen the problem before or is there just no fix or workaround?

      ? 1 Reply Last reply
      0
      • T themts

        Has nobody seen the problem before or is there just no fix or workaround?

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @themts Hi! Is it this one? QTBUG-49574

        1 Reply Last reply
        0
        • T Offline
          T Offline
          themts
          wrote on last edited by
          #4

          yes, somehow it's like that, besides I'm not using an AnimatedSprite.

          It seams that there is a problem as soon as there is any kind of animation working in background.
          Here is an example:

          Rectangle {
                  anchors.fill: parent
                  color: "black"
              }
          
              Rectangle {
                  id: opSource
                  color: "red"
                  width: 150
                  height: 150
                  visible: false
              }
          
              Rectangle {
                  id: mask
                  width: 150
                  height: 150
                  visible: false
              }
          
              OpacityMask {
                  x: 372
                  y: 167
                  width: 183
                  height: 156
                  source: opSource
                  maskSource: mask
                  opacity: 1
              }
          
              Rectangle {
                  x: 1081
                  y: 47
                  width: 82
                  height: 86
                  visible: true
          
                  SequentialAnimation on opacity {
                      running: true
                      loops: Animation.Infinite
                      NumberAnimation { from: 0.3; to: 1.0; duration: 1500}
                      NumberAnimation { from: 1.0; to: 0.3; duration: 1500}
                  }
          
              }
          

          just put this code on an empty window and you will see that one core is at 100%.

          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