mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
gsdx: Add an automatic CRC hack level
If a user switches renderer they also have to remember to change the CRC hack level for the best user experience with the selected renderer. This commit adds a new automatic CRC level that autoselects the recommended CRC level for the selected renderer, so that a user doesn't have to make the change manually. coauthor: turtleli
This commit is contained in:
1 parent
439472d4f8
commit
a18d624bcb
10 files changed
+38
-32
No files matched your search
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "GSTextureCache.h"
|
||||
#include "GSUtil.h"
|
||||
|
||||
bool s_IS_OPENGL = false;
|
||||
bool GSTextureCache::m_disable_partial_invalidation = false;
|
||||
@@ -51,7 +52,9 @@ GSTextureCache::GSTextureCache(GSRenderer* r)
|
||||
|
||||
m_paltex = theApp.GetConfigB("paltex");
|
||||
m_can_convert_depth &= s_IS_OPENGL; // only supported by openGL so far
|
||||
m_crc_hack_level = static_cast<CRCHackLevel>(theApp.GetConfigI("crc_hack_level"));
|
||||
m_crc_hack_level = theApp.GetConfigT<CRCHackLevel>("crc_hack_level");
|
||||
if (m_crc_hack_level == CRCHackLevel::Automatic)
|
||||
m_crc_hack_level = GSUtil::GetRecommendedCRCHackLevel(theApp.GetCurrentRendererType());
|
||||
|
||||
// In theory 4MB is enough but 9MB is safer for overflow (8MB
|
||||
// isn't enough in custom resolution)
|
||||
|
||||
Reference in new issue
Block a user