add note for thread scheduler on intel and update wording

This commit is contained in:
13xforever 2021-03-28 15:14:22 +05:00
parent 0066dd8762
commit c2861278e9
2 changed files with 21 additions and 9 deletions

View File

@ -47,20 +47,31 @@ 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 (items["cpu_model"] is string cpu)
{
if (Version.TryParse(items["os_version"], out var winVer)
&& (winVer.Major < 10 || (winVer.Major == 10 && winVer.Build < 18362))) // everything before win 10 1903
if (cpu.StartsWith("AMD")
&& cpu.Contains("Ryzen")
&& items["os_type"] != "Linux")
{
if (items["thread_scheduler"] == "OS")
notes.Add("⚠ Please enable RPCS3 `Thread Scheduler` option in the CPU Settings");
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"] == "OS")
{
if (buildVersion >= IntelThreadSchedulerBuildVersion)
notes.Add("⚠ Please enable RPCS3 `Thread Scheduler` option in the CPU Settings");
else
notes.Add("⚠ Please enable `Thread Scheduler` in the CPU Settings");
}
else
notes.Add(" Changing `Thread Scheduler` option may or may not increase performance");
}
else
notes.Add(" Changing `Thread Scheduler` option may or may not increase performance");
}
else
else if (cpu.StartsWith("Intel")
&& threadCount > 11
&& buildVersion >= IntelThreadSchedulerBuildVersion)
notes.Add(" Changing `Thread Scheduler` option may or may not increase performance");
}
if (items["llvm_arch"] is string llvmArch)

View File

@ -60,6 +60,7 @@ namespace CompatBot.Utils.ResultFormatters
private static readonly Version NvidiaFullscreenBugFixed = new(0, 0, 6, 8204);
private static readonly Version TsxFaFixedVersion = new(0, 0, 12, 10995);
private static readonly Version RdnaMsaaFixedVersion = new(0, 0, 13, 11300);
private static readonly Version IntelThreadSchedulerBuildVersion = new(0, 0, 15, 12008);
private static readonly Dictionary<string, string> RsxPresentModeMap = new()
{