Add "SPU Cache" option

If disabled, the cache will still be loaded, but never updated.
This commit is contained in:
Nekotekina 2018-06-04 02:21:00 +03:00
parent 5d4c5ecc1c
commit 5c9d0e4b46
3 changed files with 3 additions and 2 deletions

View File

@ -1055,7 +1055,7 @@ spu_function_t spu_recompiler::compile(std::vector<u32>&& func_rv)
fs::file(Emu.GetCachePath() + "SPUJIT.log", fs::write + fs::append).write(log);
}
if (m_cache)
if (m_cache && g_cfg.core.spu_cache)
{
m_cache->add(func);
}

View File

@ -1716,7 +1716,7 @@ public:
fs::file(m_spurt->m_cache_path + "../spu.log", fs::write + fs::append).write(log);
}
if (m_cache)
if (m_cache && g_cfg.core.spu_cache)
{
m_cache->add(func);
}

View File

@ -323,6 +323,7 @@ struct cfg_root : cfg::node
cfg::_enum<spu_block_size_type> spu_block_size{this, "SPU Block Size"};
cfg::_bool spu_accurate_getllar{this, "Accurate GETLLAR", false};
cfg::_bool spu_verification{this, "SPU Verification", true}; // Should be enabled
cfg::_bool spu_cache{this, "SPU Cache", true};
cfg::_enum<lib_loading_type> lib_loading{this, "Lib Loader", lib_loading_type::liblv2only};
cfg::_bool hook_functions{this, "Hook static functions"};