mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-19 06:39:55 +00:00
Assume GPUs on non-x86 platforms are slow by default
This can be overriden with GL_IS_SLOW=0 at runtime for systems with a fast GPU, though it doesn't make much difference either way for non-KMSDRM cases. For slower GPUs, this enables important scaling and rendering optimizations that can substantially improve performance (especially on fillrate-limited GPUs common in SBCs).
This commit is contained in:
@@ -210,7 +210,8 @@ bool WMUtils::isGpuSlow()
|
||||
bool ret;
|
||||
|
||||
if (!Utils::getEnvironmentVariableOverride("GL_IS_SLOW", &ret)) {
|
||||
#ifdef GL_IS_SLOW
|
||||
#if defined(GL_IS_SLOW) || !defined(Q_PROCESSOR_X86)
|
||||
// We currently assume GPUs on non-x86 hardware are slow by default
|
||||
ret = true;
|
||||
#else
|
||||
ret = false;
|
||||
|
||||
Reference in New Issue
Block a user