mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
add an option to choose buffer cache type
This commit is contained in:
parent
03d4e86b61
commit
b38ca6a58a
8 changed files with 75 additions and 36 deletions
|
@ -226,7 +226,7 @@ bool GameProfile::Load(uint64_t title_id)
|
|||
m_graphics_api = (GraphicAPI)graphicsApi.value;
|
||||
|
||||
gameProfile_loadEnumOption(iniParser, "accurateShaderMul", m_accurateShaderMul);
|
||||
gameProfile_loadBooleanOption2(iniParser, "useHostMemForCache", m_useHostMemForCache);
|
||||
gameProfile_loadEnumOption(iniParser, "bufferCacheType", m_bufferCacheType);
|
||||
|
||||
// legacy support
|
||||
auto option_precompiledShaders = iniParser.FindOption("precompiledShaders");
|
||||
|
@ -309,7 +309,7 @@ void GameProfile::Save(uint64_t title_id)
|
|||
|
||||
fs->writeLine("[Graphics]");
|
||||
WRITE_ENTRY(accurateShaderMul);
|
||||
WRITE_ENTRY(useHostMemForCache);
|
||||
WRITE_ENTRY(bufferCacheType);
|
||||
WRITE_OPTIONAL_ENTRY(precompiledShaders);
|
||||
WRITE_OPTIONAL_ENTRY(graphics_api);
|
||||
fs->writeLine("");
|
||||
|
@ -339,7 +339,7 @@ void GameProfile::ResetOptional()
|
|||
|
||||
// graphic settings
|
||||
m_accurateShaderMul = AccurateShaderMulOption::True;
|
||||
m_useHostMemForCache = false;
|
||||
m_bufferCacheType = BufferCacheType::DevicePrivate;
|
||||
// cpu settings
|
||||
m_threadQuantum = kThreadQuantumDefault;
|
||||
m_cpuMode.reset(); // CPUModeOption::kSingleCoreRecompiler;
|
||||
|
@ -360,7 +360,7 @@ void GameProfile::Reset()
|
|||
|
||||
// graphic settings
|
||||
m_accurateShaderMul = AccurateShaderMulOption::True;
|
||||
m_useHostMemForCache = false;
|
||||
m_bufferCacheType = BufferCacheType::DevicePrivate;
|
||||
m_precompiledShaders = PrecompiledShaderOption::Auto;
|
||||
// cpu settings
|
||||
m_threadQuantum = kThreadQuantumDefault;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue