System: Prevent using both runahead and rewind concurrently
This commit is contained in:
parent
3f96473fb5
commit
b3ce2b21c0
2 changed files with 25 additions and 3 deletions
|
|
@ -672,6 +672,19 @@ void HostInterface::FixIncompatibleSettings(bool display_osd_messages)
|
|||
Log_WarningPrintf("Disabling mmap fastmem due to rewind being enabled");
|
||||
g_settings.cpu_fastmem_mode = CPUFastmemMode::LUT;
|
||||
}
|
||||
|
||||
// code compilation is too slow with runahead, use the recompiler
|
||||
if (g_settings.runahead_enable && g_settings.IsUsingCodeCache())
|
||||
{
|
||||
Log_WarningPrintf("Code cache/recompiler disabled due to runahead");
|
||||
g_settings.cpu_execution_mode = CPUExecutionMode::Interpreter;
|
||||
}
|
||||
|
||||
if (g_settings.runahead_enable && g_settings.rewind_enable)
|
||||
{
|
||||
Log_WarningPrintf("Rewind disabled due to runahead being enabled");
|
||||
g_settings.rewind_enable = false;
|
||||
}
|
||||
}
|
||||
|
||||
void HostInterface::SaveSettings(SettingsInterface& si)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue