mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user