Skip to content

Commit

Permalink
GSdx-Windows: Automatic CRC hack level selection
Browse files Browse the repository at this point in the history
Default to "Partial" CRC hack level when the GPU's best renderer is determined as the OpenGL hardware renderer.
  • Loading branch information
ssakash authored and gregory38 committed Feb 21, 2017
1 parent ff89619 commit 319b3da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions plugins/GSdx/GS.cpp
Expand Up @@ -523,7 +523,11 @@ EXPORT_C_(int) GSopen2(void** dsp, uint32 flags)
renderer = static_cast<GSRendererType>(theApp.GetConfigI("Renderer"));
#ifdef _WIN32
if (renderer == GSRendererType::Default)
{
renderer = GSUtil::GetBestRenderer();
if (renderer == GSRendererType::OGL_HW)
theApp.SetConfig("crc_hack_level", static_cast<int>(CRCHackLevel::Partial));
}
#endif
}
else if (stored_toggle_state != toggle_state)
Expand Down
13 changes: 12 additions & 1 deletion plugins/GSdx/GSSettingsDlg.cpp
Expand Up @@ -360,7 +360,18 @@ void GSSettingsDlg::UpdateRenderers()
else
{
GSRendererType ini_renderer = GSRendererType(theApp.GetConfigI("Renderer"));
renderer_setting = (ini_renderer == GSRendererType::Undefined) ? GSUtil::GetBestRenderer() : ini_renderer;

if (ini_renderer == GSRendererType::Undefined)
{
renderer_setting = GSUtil::GetBestRenderer();

if(renderer_setting == GSRendererType::OGL_HW)
theApp.SetConfig("crc_hack_level", static_cast<int>(CRCHackLevel::Partial));
}
else
{
renderer_setting = ini_renderer;
}
}

GSRendererType renderer_sel = GSRendererType::Default;
Expand Down

0 comments on commit 319b3da

Please sign in to comment.