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

Render Bug when High-DPI scaling is active

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3, 6.7.2
    • Qt RHI
    • None
    • Windows

    Description

      In certain cases the text border is rendered incorrectly as seen in the "bad" image.
      The expected render can be seen in the "good" image.
      The border of the red square is also wider in the "bad" image.
      In a screenshot with PrtSc, the text and square are rendered correctly so we had to make a photograph of the screen.

      Use the appended font.qml file to reproduce the bug.

      The following conditions must be met to reproduce the bug:
      windows:dpiawareness must be set to 0
      QSG_RHI_BACKEND must be d3d11, d3d12 or vulkan
      In the NVIDIA Control Panel, "3D Settings -> Manage 3D settings -> Image Scaling" must be turned off
      Windows display settings: "Scale and layout" must be set to 150% (or anything other than 100%)

      The bug does not appear while using vulkan if V-Sync is turned off via QSG_NO_VSYNC=1.

      The Bug does not appear if the window is maximized.
      When using two displays, only one renders the application correctly.
      Dragging the window around on the correct display feels smooth while dragging the window on the incorrect display feels choppy.
      If the window is resized on the correct display and then moved to the incorrect display, the application is still represented correctly. Resizing on the incorrect display leads to the broken behaviour again.

      The following hardware was used with Windows 10:
      4k Display with V-Sync and the scaling set to 150%
      NVIDIA GeForce RTX 3050, Driver 556.12

      The bug does also not appear while using vulkan if the IGPU (Intel UHD Graphics 770) is used.

      Attachments

        1. good.jpg
          good.jpg
          4.94 MB
        2. font.qml
          1 kB
        3. bad.jpg
          bad.jpg
          4.55 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            scheungrab@cipsoft.com Anton Scheungrab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes