From b6c6a5bb3f4b3bf930af7b9cf067c815ae4aba65 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 14 Sep 2021 23:43:29 -0700 Subject: [PATCH] GPU: Default vertex cache to off. Previously, it was defaulted on only for OpenGL, where it didn't work. --- Core/Config.cpp | 6 +----- headless/Headless.cpp | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5ab92acb28..79d7a745c7 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -795,10 +795,6 @@ bool Config::IsBackendEnabled(GPUBackend backend, bool validate) { return true; } -static bool DefaultVertexCache() { - return DefaultGPUBackend() == (int)GPUBackend::OPENGL; -} - template struct ConfigTranslator { static std::string To(int v) { @@ -875,7 +871,7 @@ static ConfigSetting graphicsSettings[] = { // Most low-performance (and many high performance) mobile GPUs do not support aniso anyway so defaulting to 4 is fine. ConfigSetting("AnisotropyLevel", &g_Config.iAnisotropyLevel, 4, true, true), - ReportedConfigSetting("VertexDecCache", &g_Config.bVertexCache, &DefaultVertexCache, true, true), + ReportedConfigSetting("VertexDecCache", &g_Config.bVertexCache, false, true, true), ReportedConfigSetting("TextureBackoffCache", &g_Config.bTextureBackoffCache, false, true, true), ReportedConfigSetting("TextureSecondaryCache", &g_Config.bTextureSecondaryCache, false, true, true), ReportedConfigSetting("VertexDecJit", &g_Config.bVertexDecoderJit, &DefaultCodeGen, false), diff --git a/headless/Headless.cpp b/headless/Headless.cpp index 9a860018e5..0f537ac9d9 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -381,7 +381,7 @@ int main(int argc, const char* argv[]) g_Config.iRenderingMode = FB_BUFFERED_MODE; g_Config.bHardwareTransform = true; g_Config.iAnisotropyLevel = 0; // When testing mipmapping we really don't want this. - g_Config.bVertexCache = true; + g_Config.bVertexCache = false; g_Config.iLanguage = PSP_SYSTEMPARAM_LANGUAGE_ENGLISH; g_Config.iTimeFormat = PSP_SYSTEMPARAM_TIME_FORMAT_24HR; g_Config.bEncryptSave = true;