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

AnimatedImage causes frameswapping even when invisible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.3
    • Quick: Other
    • None

    Description

      Using QSG_RENDER_TIMINGS, or the qmlprofiler, I notice the scene graph is swapping frames even if the AnimatedImage is invisible, a workaound is to bind playing: visible

      Only happens with basic render loop, this then becomes a scene graph issue, but there's also the fact that AnimatedImage calls update() even if invisible

       import QtQuick 2.6
       import QtQuick.Window 2.2
      
      Window {
           visible: true
           width: 640
           height: 480
           title: qsTr("Hello World")
      
       
      
          AnimatedImage {
               id: anim
               source: "https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"
      
               width: 400
                height: 400
                playing: true
                visible: false
           }
       }
      
      
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              iamsergio Sergio Martins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes