diff --git a/pcsx2-gsrunner/Main.cpp b/pcsx2-gsrunner/Main.cpp index 0430a5d770..7d5578f5b8 100644 --- a/pcsx2-gsrunner/Main.cpp +++ b/pcsx2-gsrunner/Main.cpp @@ -597,7 +597,7 @@ bool GSRunner::ParseCommandLineArgs(int argc, char* argv[], VMBootParameters& pa else if (CHECK_ARG("-noshadercache")) { Console.WriteLn("Disabling shader cache"); - s_settings_interface.SetBoolValue("EmuCore/GS", "disable_shader_cache", false); + s_settings_interface.SetBoolValue("EmuCore/GS", "disable_shader_cache", true); continue; } else if (CHECK_ARG("-window")) diff --git a/pcsx2/Frontend/VulkanHostDisplay.cpp b/pcsx2/Frontend/VulkanHostDisplay.cpp index e34200e255..7499e27684 100644 --- a/pcsx2/Frontend/VulkanHostDisplay.cpp +++ b/pcsx2/Frontend/VulkanHostDisplay.cpp @@ -294,7 +294,8 @@ bool VulkanHostDisplay::CreateDevice(const WindowInfo& wi, VsyncMode vsync) bool VulkanHostDisplay::SetupDevice() { - Vulkan::ShaderCache::Create(EmuFolders::Cache, SHADER_CACHE_VERSION, EmuConfig.GS.UseDebugDevice); + Vulkan::ShaderCache::Create(EmuConfig.GS.DisableShaderCache ? std::string_view() : std::string_view(EmuFolders::Cache), + SHADER_CACHE_VERSION, EmuConfig.GS.UseDebugDevice); return true; }