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

SceneGraph blocks GUI thread during rendering

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.12.9, 5.15.2, 6.0.0
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None
    • Environment:
    • Platform/s:
      Linux/X11

      Description

      GUI Thread Sync operation blocks the main thread for ~10msec for each frame on 60 FPS.


       

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
              anchors.centerIn: parent
              color: "red"
              width: 100; height: 100;
      
      
              RotationAnimator on rotation {
                  loops: Animation.Infinite
                  from: 0
                  to: 360
                  duration: 1000
              }
          }
      }
      

      qt.scenegraph.time.renderloop: [window 0x564f64539950][gui thread] polishAndSync: start, elapsed since last call: 16 ms
      qt.scenegraph.time.renderloop: [window 0x564f64539950][render thread 0x564f64671730] syncAndRender: frame rendered in 16ms, sync=0, render=0, swap=16
      qt.scenegraph.time.renderloop: [window 0x564f64539950][render thread 0x564f64671730] syncAndRender: start, elapsed since last call: 16 ms
      qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, rendering=0
      qt.scenegraph.time.renderloop: [window 0x564f64539950][gui thread] Frame prepared, polish=0 ms, lock=0 ms, blockedForSync=11 ms, animations=0 ms

        Attachments

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

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            kmitrakhovich Kirill Mitrakhovich
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes