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:
parent
0a2b134d49
commit
6f4ced5ed6
2 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue