Skip to content

Commit

Permalink
client: Disable threaded GL on desktop NVIDIA
Browse files Browse the repository at this point in the history
Otherwise QtQuick windows freeze when resized.
In order to still use threaded rendering on
embedded platforms where resizing is not required
we check if XDG_CURRENT_DESKTOP which should be
set by  desktop environments.

Task-number: QTBUG-95817
Pick-to: 6.7 6.6 6.6.2
Change-Id: Ic2348c3169e0ade8c5463e3d7c7a1c45037a89a7
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Reviewed-by: David Edmundson <[email protected]>
  • Loading branch information
Sodivad committed Feb 1, 2024
1 parent 17e4672 commit 6d83cf9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ void QWaylandEglClientBufferIntegration::initialize(QWaylandDisplay *display)
break;
}
}

// On desktop NVIDIA resizing QtQuick freezes them when using threaded rendering QTBUG-95817
// In order to support threaded rendering on embedded platforms where resizing is not needed
// we check if XDG_CURRENT_DESKTOP is set which desktop environments should set
if (qstrcmp(vendor, "NVIDIA") == 0 && qEnvironmentVariableIsSet("XDG_CURRENT_DESKTOP")) {
m_supportsThreading = false;
}
}

bool QWaylandEglClientBufferIntegration::isValid() const
Expand Down

0 comments on commit 6d83cf9

Please sign in to comment.