Functionally revert f60e7241

Switching to indirect rendering has a high risk of performance and functionality regressions,
so let's just continue using AVSampleBufferDisplayLayer until we have a Metal renderer
since #973 is fixed.

This isn't an actual revert because we want to still keep the indirect override around.
This commit is contained in:
Cameron Gutman 2023-09-12 18:36:53 -05:00
parent 7100262e09
commit f4b0f4d78f

View file

@ -478,19 +478,7 @@ public:
"Using indirect rendering due to environment variable");
m_DirectRendering = false;
}
else if (params->videoFormat & VIDEO_FORMAT_MASK_10BIT) {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Using direct rendering for 10-bit content");
m_DirectRendering = true;
}
else if (isAppleSilicon) {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Using indirect rendering for 8-bit content on Apple Silicon");
m_DirectRendering = false;
}
else {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Using direct rendering for 8-bit content on Intel");
m_DirectRendering = true;
}