Use display scaling to improve performance on slow GPUs
This dramatically improves performance for lower resolution streams on slow GPUs when using the GL and Vulkan renderers.
This commit is contained in:
parent
f3f1d56e8d
commit
ceef792f04
4 changed files with 46 additions and 12 deletions
|
|
@ -109,8 +109,10 @@ void StreamingPreferences::reload()
|
|||
#ifdef Q_OS_DARWIN
|
||||
recommendedFullScreenMode = WindowMode::WM_FULLSCREEN_DESKTOP;
|
||||
#else
|
||||
// Wayland doesn't support modesetting, so use fullscreen desktop mode.
|
||||
if (WMUtils::isRunningWayland()) {
|
||||
// Wayland doesn't support modesetting, so use fullscreen desktop mode
|
||||
// unless we have a slow GPU (which can take advantage of wp_viewporter
|
||||
// to reduce GPU load with lower resolution video streams).
|
||||
if (WMUtils::isRunningWayland() && !WMUtils::isGpuSlow()) {
|
||||
recommendedFullScreenMode = WindowMode::WM_FULLSCREEN_DESKTOP;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue