Qt: Simplify runahead settings
This commit is contained in:
@ -495,8 +495,7 @@ void HostInterface::SetDefaultSettings(SettingsInterface& si)
|
||||
si.SetBoolValue("Main", "RewindEnable", false);
|
||||
si.SetFloatValue("Main", "RewindFrequency", 10.0f);
|
||||
si.SetIntValue("Main", "RewindSaveSlots", 10);
|
||||
si.SetBoolValue("Main", "RunaheadEnable", false);
|
||||
si.SetFloatValue("Main", "RunaheadFrames", 1);
|
||||
si.SetFloatValue("Main", "RunaheadFrameCount", 0);
|
||||
|
||||
si.SetStringValue("CPU", "ExecutionMode", Settings::GetCPUExecutionModeName(Settings::DEFAULT_CPU_EXECUTION_MODE));
|
||||
si.SetBoolValue("CPU", "RecompilerMemoryExceptions", false);
|
||||
@ -666,7 +665,7 @@ void HostInterface::FixIncompatibleSettings(bool display_osd_messages)
|
||||
#endif
|
||||
|
||||
// rewinding causes issues with mmap fastmem, so just use LUT
|
||||
if ((g_settings.rewind_enable || g_settings.runahead_enable) && g_settings.IsUsingFastmem() &&
|
||||
if ((g_settings.rewind_enable || g_settings.IsRunaheadEnabled()) && g_settings.IsUsingFastmem() &&
|
||||
g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap)
|
||||
{
|
||||
Log_WarningPrintf("Disabling mmap fastmem due to rewind being enabled");
|
||||
@ -674,13 +673,13 @@ void HostInterface::FixIncompatibleSettings(bool display_osd_messages)
|
||||
}
|
||||
|
||||
// code compilation is too slow with runahead, use the recompiler
|
||||
if (g_settings.runahead_enable && g_settings.IsUsingCodeCache())
|
||||
if (g_settings.IsRunaheadEnabled() && 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)
|
||||
if (g_settings.IsRunaheadEnabled() && g_settings.rewind_enable)
|
||||
{
|
||||
Log_WarningPrintf("Rewind disabled due to runahead being enabled");
|
||||
g_settings.rewind_enable = false;
|
||||
@ -789,7 +788,7 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings)
|
||||
g_settings.display_line_start_offset != old_settings.display_line_start_offset ||
|
||||
g_settings.display_line_end_offset != old_settings.display_line_end_offset ||
|
||||
g_settings.rewind_enable != old_settings.rewind_enable ||
|
||||
g_settings.runahead_enable != old_settings.runahead_enable)
|
||||
g_settings.runahead_frames != old_settings.runahead_frames)
|
||||
{
|
||||
if (g_settings.IsUsingCodeCache())
|
||||
CPU::CodeCache::Reinitialize();
|
||||
@ -830,7 +829,6 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings)
|
||||
if (g_settings.rewind_enable != old_settings.rewind_enable ||
|
||||
g_settings.rewind_save_frequency != old_settings.rewind_save_frequency ||
|
||||
g_settings.rewind_save_slots != old_settings.rewind_save_slots ||
|
||||
g_settings.runahead_enable != old_settings.runahead_enable ||
|
||||
g_settings.runahead_frames != old_settings.runahead_frames)
|
||||
{
|
||||
System::UpdateMemorySaveStateSettings();
|
||||
|
||||
Reference in New Issue
Block a user