summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-02-18 18:22:41 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2017-04-04 09:52:18 -0500
commita9d08a31a682484210aae9514b54b0a67f7a44d2 (patch)
tree9e76ac8d66479345d15a186a453a87a4e563e11b /Source/Core/VideoCommon/VideoConfig.cpp
parent840e58c0323b40e96b78962ed784b4f1d7e70c34 (diff)
Add configurable toggle that rounds vertices to the nearest pixel when
w=1. This fixes some games at higher IRs.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index 08b814fd28..604bdb4bdd 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -125,6 +125,7 @@ void VideoConfig::Load(const std::string& ini_file)
hacks->Get("EFBToTextureEnable", &bSkipEFBCopyToRam, true);
hacks->Get("EFBScaledCopy", &bCopyEFBScaled, true);
hacks->Get("EFBEmulateFormatChanges", &bEFBEmulateFormatChanges, false);
+ hacks->Get("VertexRounding", &bVertexRounding, false);
// hacks which are disabled by default
iPhackvalue[0] = 0;
@@ -228,6 +229,7 @@ void VideoConfig::GameIniLoad()
CHECK_SETTING("Video_Hacks", "EFBToTextureEnable", bSkipEFBCopyToRam);
CHECK_SETTING("Video_Hacks", "EFBScaledCopy", bCopyEFBScaled);
CHECK_SETTING("Video_Hacks", "EFBEmulateFormatChanges", bEFBEmulateFormatChanges);
+ CHECK_SETTING("Video_Hacks", "VertexRounding", bVertexRounding);
CHECK_SETTING("Video", "ProjectionHack", iPhackvalue[0]);
CHECK_SETTING("Video", "PH_SZNear", iPhackvalue[1]);
@@ -350,6 +352,7 @@ void VideoConfig::Save(const std::string& ini_file)
hacks->Set("EFBToTextureEnable", bSkipEFBCopyToRam);
hacks->Set("EFBScaledCopy", bCopyEFBScaled);
hacks->Set("EFBEmulateFormatChanges", bEFBEmulateFormatChanges);
+ hacks->Set("VertexRounding", bVertexRounding);
iniFile.Save(ini_file);
}