mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
Add "SPU Cache" option
If disabled, the cache will still be loaded, but never updated.
This commit is contained in:
parent
5d4c5ecc1c
commit
5c9d0e4b46
3 changed files with 3 additions and 2 deletions
|
@ -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);
|
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);
|
m_cache->add(func);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1716,7 +1716,7 @@ public:
|
||||||
fs::file(m_spurt->m_cache_path + "../spu.log", fs::write + fs::append).write(log);
|
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);
|
m_cache->add(func);
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,6 +323,7 @@ struct cfg_root : cfg::node
|
||||||
cfg::_enum<spu_block_size_type> spu_block_size{this, "SPU Block Size"};
|
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_accurate_getllar{this, "Accurate GETLLAR", false};
|
||||||
cfg::_bool spu_verification{this, "SPU Verification", true}; // Should be enabled
|
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::_enum<lib_loading_type> lib_loading{this, "Lib Loader", lib_loading_type::liblv2only};
|
||||||
cfg::_bool hook_functions{this, "Hook static functions"};
|
cfg::_bool hook_functions{this, "Hook static functions"};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue