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:
Cameron Gutman committed 2025-12-30 15:00:47 -06:00
1 parent f3f1d56e8d
commit ceef792f04
4 files changed
+46 -12

No files matched your search

+15
View File
@@ -205,6 +205,21 @@ bool WMUtils::isRunningDesktopEnvironment()
#endif
}
bool WMUtils::isGpuSlow()
{
bool ret;
if (!Utils::getEnvironmentVariableOverride("GL_IS_SLOW", &ret)) {
#ifdef GL_IS_SLOW
ret = true;
#else
ret = false;
#endif
}
return ret;
}
QString WMUtils::getDrmCardOverride()
{
#ifdef HAVE_DRM