mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
Add configurable toggle that rounds vertices to the nearest pixel when
w=1. This fixes some games at higher IRs.
This commit is contained in:
parent
840e58c032
commit
a9d08a31a6
9 changed files with 68 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue