update thread scheduler check for ryzens on recent windows builds

This commit is contained in:
13xforever 2020-01-25 03:50:57 +05:00
parent 75fafe8c72
commit d3ec06189b
2 changed files with 19 additions and 3 deletions

View File

@ -226,9 +226,6 @@ namespace CompatBot.Utils.ResultFormatters
{
if (threadCount < 12)
notes.Add("⚠ Six cores or more is recommended for Ryzen CPUs");
if (items["os_type"] != "Linux"
&& items["thread_scheduler"] == DisabledMark)
notes.Add("⚠ Please enable `Thread scheduler` option in the CPU Settings");
}
else
notes.Add("⚠ AMD CPUs before Ryzen are too weak for PS3 emulation");

View File

@ -30,6 +30,25 @@ namespace CompatBot.Utils.ResultFormatters
if (items["spu_lower_thread_priority"] == EnabledMark
&& threadCount > 4)
notes.Add("❔ `Lower SPU thread priority` is enabled on a CPU with enough threads");
if (items["cpu_model"] is string cpu
&& cpu.StartsWith("AMD")
&& cpu.Contains("Ryzen")
&& items["os_type"] != "Linux")
{
if (Version.TryParse(items["os_version"], out var winVer)
&& (winVer.Major < 10 || (winVer.Major == 10 && winVer.Build < 18362))) // everything before win 10 1903
{
if (items["thread_scheduler"] == DisabledMark)
notes.Add("⚠ Please enable `Thread Scheduler` option in the CPU Settings");
}
else
{
if (items["thread_scheduler"] == DisabledMark)
notes.Add(" Enabling `Thread Scheduler` option in the CPU Settings may increase performance");
else
notes.Add(" Disabling `Thread Scheduler` option in the CPU Settings may increase performance");
}
}
if (items["llvm_arch"] is string llvmArch)
notes.Add($"❔ LLVM target CPU architecture override is set to `{llvmArch.Sanitize(replaceBackTicks: true)}`");