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

[REG 5.15.10->6.6.0] Extremely slow window canvas resize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • Qt RHI, Quick: SceneGraph
    • None

    Description

      Under Qt6 wayland, when resizing a QtQuick window, the window's canvas resizes extremely slowly compared to Qt5. Note that the same effect can be seen by using the XCB platform plugin in Qt5. Other platforms have not been tested.

      The QtQuick renderer also appears to anchor the internal canvas at the bottom left corner of the window. It may also help to change the anchor to the top left to decrease any jitter.

      A reproducible example is attached as resize.qml. I have tested it under the Hyprland and Sway wayland compositors using the wayland and xcb platform plugins with Qt5 and Qt6. Videos of all combinations' behavior is attached.

      All wayland tests were run with "qml -platform wayland resize.qml". All xcb tests were run with "qml -platform xcb resize.qml".

      Note that the black texture behind Qt's white one is likely caused by xwayland and can probably be ignored, but the white background inside it appears to be caused by qt.

       

      Qt6 / Wayland / Hyprland -> Extremely slow canvas resize and visual artifacting

      Qt6 / Wayland / Sway -> Extremely slow canvas resize

      Qt6 / XCB / Hyprland -> Extremely slow canvas resize, no artifacting

      Qt6 / XCB / Sway -> Extremely slow canvas resize

      Qt5 / Wayland / Hyprland -> Renders perfectly

      Qt5 / Wayland / Sway -> Renders perfectly

      Qt5 / XCB / Hyprland -> Extremely slow canvas resize

      Qt5 / XCB / Sway -> Extremely slow canvas resize

       

      I have also spoken to Hyprland's developer and the visual artifacting in the Hyprland / Wayland / Qt6 combination appears to be a Hyprland bug. The window (not canvas) resizing slowly/artifacting under Sway is a Sway bug that affects all windows rendered with any toolkit.

      Attachments

        1. qt5-wayland-hyprland.mp4
          574 kB
        2. qt5-xcb-hyprland.mp4
          744 kB
        3. qt5-xcb-sway.mp4
          520 kB
        4. qt6diag.txt
          41 kB
        5. qt6-wayland-hyprland.mp4
          689 kB
        6. qt6-wayland-sway.mp4
          473 kB
        7. qt6-wayland-sway-1.mp4
          473 kB
        8. qt6-xcb-hyprland.mp4
          637 kB
        9. qt6-xcb-sway.mp4
          330 kB
        10. resize-1.qml
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            outfoxxed outfoxxed -
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes