mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
add spu events busy loop check for low threaded cpus
This commit is contained in:
@@ -59,6 +59,7 @@ internal partial class LogParser
|
||||
["Use LLVM CPU:"] = LlvmCpuArch(),
|
||||
["thread scheduler"] = ThreadSchedulerMode(),
|
||||
["SPU Decoder:"] = SpuDecoderType(),
|
||||
["SPU Reservation Busy Waiting Enabled:"] = SpuEventsBusyLoop(),
|
||||
["Disable SPU GETLLAR Spin Optimization:"] = DisableSpuGetllarSpinOptimization(),
|
||||
["secondary cores:"] = SecondaryCores(),
|
||||
//["priority:"] = LowerThreadPriority(),
|
||||
|
||||
@@ -69,6 +69,8 @@ internal partial class LogParser
|
||||
private static partial Regex ThreadSchedulerMode();
|
||||
[GeneratedRegex(@"SPU Decoder: (?<spu_decoder>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex SpuDecoderType();
|
||||
[GeneratedRegex(@"SPU Reservation Busy Waiting Enabled: (?<spu_events_busy_loop>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex SpuEventsBusyLoop();
|
||||
[GeneratedRegex(@"Disable SPU GETLLAR Spin Optimization: (?<disable_getllar_spin_optimization>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex DisableSpuGetllarSpinOptimization();
|
||||
[GeneratedRegex(@"secondary cores: (?<spu_secondary_cores>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
|
||||
@@ -272,12 +272,14 @@ internal static partial class LogParserResult
|
||||
if (items["spu_decoder"] is string spuDecoder && spuDecoder.Contains("Interpreter", StringComparison.InvariantCultureIgnoreCase))
|
||||
notes.Add("⚠️ Please set `SPU Decoder` to use recompiler for better performance");
|
||||
|
||||
if (items["accurate_getllar"] == EnabledMark)
|
||||
if (items["accurate_getllar"] is EnabledMark)
|
||||
notes.Add("ℹ️ `Accurate GETLLAR` is enabled");
|
||||
if (items["accurate_putlluc"] == EnabledMark)
|
||||
if (items["accurate_putlluc"] is EnabledMark)
|
||||
notes.Add("ℹ️ `Accurate PUTLLUC` is enabled");
|
||||
if (items["accurate_rsx_reservation"] == EnabledMark)
|
||||
if (items["accurate_rsx_reservation"] is EnabledMark)
|
||||
notes.Add("ℹ️ `Accurate RSX Reservation Access` is enabled");
|
||||
if (items["spu_events_busy_loop"] is EnabledMark && threadCount < 12)
|
||||
notes.Add("⚠️ `SPU Events Busy Loop` is enabled on a CPU with few threads");
|
||||
|
||||
if (KnownGamesThatRequireAccurateXfloat.Contains(serial) && items["xfloat_mode"] is not "Accurate")
|
||||
notes.Add("⚠️ `Accurate xfloat` is required for this game");
|
||||
@@ -614,7 +616,7 @@ internal static partial class LogParserResult
|
||||
notes.Add("ℹ️ `SPU Thread Count` is best to set to `2`");
|
||||
}
|
||||
}
|
||||
if (items["spu_loop_detection"] == EnabledMark)
|
||||
if (items["spu_loop_detection"] is EnabledMark)
|
||||
notes.Add("ℹ️ If you have distorted audio, try disabling `SPU Loop Detection`");
|
||||
if (items["frame_limit"] is not null and not "Off")
|
||||
notes.Add("⚠️ `Frame Limiter` is not required, please disable");
|
||||
|
||||
Reference in New Issue
Block a user