mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
Make arbitrary mipmap detection a config option
Under GFX::Enhancements::ArbitraryMipmapDetection - default enabled
This commit is contained in:
parent
b547f72878
commit
29b7e33c14
@ -107,6 +107,8 @@ const ConfigInfo<bool> GFX_ENHANCE_FORCE_TRUE_COLOR{{System::GFX, "Enhancements"
|
|||||||
true};
|
true};
|
||||||
const ConfigInfo<bool> GFX_ENHANCE_DISABLE_COPY_FILTER{
|
const ConfigInfo<bool> GFX_ENHANCE_DISABLE_COPY_FILTER{
|
||||||
{System::GFX, "Enhancements", "DisableCopyFilter"}, true};
|
{System::GFX, "Enhancements", "DisableCopyFilter"}, true};
|
||||||
|
const ConfigInfo<bool> GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION{
|
||||||
|
{System::GFX, "Enhancements", "ArbitraryMipmapDetection"}, true};
|
||||||
|
|
||||||
// Graphics.Stereoscopy
|
// Graphics.Stereoscopy
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ extern const ConfigInfo<int> GFX_ENHANCE_MAX_ANISOTROPY; // NOTE - this is x in
|
|||||||
extern const ConfigInfo<std::string> GFX_ENHANCE_POST_SHADER;
|
extern const ConfigInfo<std::string> GFX_ENHANCE_POST_SHADER;
|
||||||
extern const ConfigInfo<bool> GFX_ENHANCE_FORCE_TRUE_COLOR;
|
extern const ConfigInfo<bool> GFX_ENHANCE_FORCE_TRUE_COLOR;
|
||||||
extern const ConfigInfo<bool> GFX_ENHANCE_DISABLE_COPY_FILTER;
|
extern const ConfigInfo<bool> GFX_ENHANCE_DISABLE_COPY_FILTER;
|
||||||
|
extern const ConfigInfo<bool> GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION;
|
||||||
|
|
||||||
// Graphics.Stereoscopy
|
// Graphics.Stereoscopy
|
||||||
|
|
||||||
|
@ -500,6 +500,9 @@ public:
|
|||||||
if (levels.size() < 2)
|
if (levels.size() < 2)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!g_ActiveConfig.bArbitraryMipmapDetection)
|
||||||
|
return false;
|
||||||
|
|
||||||
// This is the average per-pixel, per-channel difference in percent between what we
|
// This is the average per-pixel, per-channel difference in percent between what we
|
||||||
// expect a normal blurred mipmap to look like and what we actually received
|
// expect a normal blurred mipmap to look like and what we actually received
|
||||||
// 4.5% was chosen because it's just below the lowest clearly-arbitrary texture
|
// 4.5% was chosen because it's just below the lowest clearly-arbitrary texture
|
||||||
|
@ -120,6 +120,7 @@ void VideoConfig::Refresh()
|
|||||||
sPostProcessingShader = Config::Get(Config::GFX_ENHANCE_POST_SHADER);
|
sPostProcessingShader = Config::Get(Config::GFX_ENHANCE_POST_SHADER);
|
||||||
bForceTrueColor = Config::Get(Config::GFX_ENHANCE_FORCE_TRUE_COLOR);
|
bForceTrueColor = Config::Get(Config::GFX_ENHANCE_FORCE_TRUE_COLOR);
|
||||||
bDisableCopyFilter = Config::Get(Config::GFX_ENHANCE_DISABLE_COPY_FILTER);
|
bDisableCopyFilter = Config::Get(Config::GFX_ENHANCE_DISABLE_COPY_FILTER);
|
||||||
|
bArbitraryMipmapDetection = Config::Get(Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION);
|
||||||
|
|
||||||
stereo_mode = Config::Get(Config::GFX_STEREO_MODE);
|
stereo_mode = Config::Get(Config::GFX_STEREO_MODE);
|
||||||
iStereoDepth = Config::Get(Config::GFX_STEREO_DEPTH);
|
iStereoDepth = Config::Get(Config::GFX_STEREO_DEPTH);
|
||||||
|
@ -74,6 +74,7 @@ struct VideoConfig final
|
|||||||
std::string sPostProcessingShader;
|
std::string sPostProcessingShader;
|
||||||
bool bForceTrueColor;
|
bool bForceTrueColor;
|
||||||
bool bDisableCopyFilter;
|
bool bDisableCopyFilter;
|
||||||
|
bool bArbitraryMipmapDetection;
|
||||||
|
|
||||||
// Information
|
// Information
|
||||||
bool bShowFPS;
|
bool bShowFPS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user