From 2f134c5c36c3a9c3c7a618635d98d0bf2191b9f2 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 28 Feb 2016 10:01:25 +1300 Subject: Remove the rest of ShaderDebugging. Without UID checking, it's basically a no-op that disables shader cache and stores the shader source code (without ever reading it back). --- Source/Core/VideoCommon/VideoConfig.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 753a65f9eb..c19528d7d9 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -79,7 +79,6 @@ void VideoConfig::Load(const std::string& ini_file) settings->Get("TexFmtOverlayCenter", &bTexFmtOverlayCenter, 0); settings->Get("WireFrame", &bWireFrame, 0); settings->Get("DisableFog", &bDisableFog, 0); - settings->Get("EnableShaderDebugging", &bEnableShaderDebugging, false); settings->Get("BorderlessFullscreen", &bBorderlessFullscreen, false); settings->Get("SWZComploc", &bZComploc, true); @@ -120,18 +119,6 @@ void VideoConfig::Load(const std::string& ini_file) interface->Get("UsePanicHandlers", &bTmp, true); SetEnableAlert(bTmp); - // Shader Debugging causes a huge slowdown and it's easy to forget about it - // since it's not exposed in the settings dialog. It's only used by - // developers, so displaying an obnoxious message avoids some confusion and - // is not too annoying/confusing for users. - // - // XXX(delroth): This is kind of a bad place to put this, but the current - // VideoCommon is a mess and we don't have a central initialization - // function to do these kind of checks. Instead, the init code is - // triplicated for each video backend. - if (bEnableShaderDebugging) - OSD::AddMessage("Warning: Shader Debugging is enabled, performance will suffer heavily", 15000); - VerifyValidity(); } @@ -299,7 +286,6 @@ void VideoConfig::Save(const std::string& ini_file) settings->Set("TexFmtOverlayCenter", bTexFmtOverlayCenter); settings->Set("Wireframe", bWireFrame); settings->Set("DisableFog", bDisableFog); - settings->Set("EnableShaderDebugging", bEnableShaderDebugging); settings->Set("BorderlessFullscreen", bBorderlessFullscreen); settings->Set("SWZComploc", bZComploc); -- cgit v1.2.3