mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
Jit64: warn about code cache flushing
The game Go Vacation (SGVEAF) currently stutters a lot because it keeps overflowing the far code cache and all code needs to be re-jitted. Logging this warning gives a useful hint as to what is causing the stuttering.
This commit is contained in:
parent
31efec623a
commit
41a553e33e
@ -584,6 +584,12 @@ void Jit64::Jit(u32 em_address)
|
|||||||
if (IsAlmostFull() || m_far_code.IsAlmostFull() || trampolines.IsAlmostFull() ||
|
if (IsAlmostFull() || m_far_code.IsAlmostFull() || trampolines.IsAlmostFull() ||
|
||||||
SConfig::GetInstance().bJITNoBlockCache)
|
SConfig::GetInstance().bJITNoBlockCache)
|
||||||
{
|
{
|
||||||
|
if (!SConfig::GetInstance().bJITNoBlockCache)
|
||||||
|
{
|
||||||
|
const auto reason =
|
||||||
|
IsAlmostFull() ? "main" : m_far_code.IsAlmostFull() ? "far" : "trampoline";
|
||||||
|
WARN_LOG(POWERPC, "flushing %s code cache, please report if this happens a lot", reason);
|
||||||
|
}
|
||||||
ClearCache();
|
ClearCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user