mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-18 14:20:06 +00:00
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:
15
app/wm.cpp
15
app/wm.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user