From 75290cfd566532298cb337489e3925bed73cb57d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Nov 2015 11:27:40 -0800 Subject: [PATCH] Sas: Enable SAS thread on multicore only. --- Core/Config.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5f9d41e973..3b5607fd65 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -330,10 +330,14 @@ static ConfigSetting generalSettings[] = { ConfigSetting(false), }; +static bool DefaultSasThread() { + return cpu_info.num_cores > 1; +} + static ConfigSetting cpuSettings[] = { ReportedConfigSetting("Jit", &g_Config.bJit, &DefaultJit, true, true), ReportedConfigSetting("SeparateCPUThread", &g_Config.bSeparateCPUThread, false, true, true), - ReportedConfigSetting("SeparateSASThread", &g_Config.bSeparateSASThread, true, true, true), + ReportedConfigSetting("SeparateSASThread", &g_Config.bSeparateSASThread, &DefaultSasThread, true, true), ReportedConfigSetting("SeparateIOThread", &g_Config.bSeparateIOThread, true, true, true), ReportedConfigSetting("IOTimingMethod", &g_Config.iIOTimingMethod, IOTIMING_FAST, true, true), ConfigSetting("FastMemoryAccess", &g_Config.bFastMemory, true, true, true),