mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
update spu block size parsing in logs
This commit is contained in:
@@ -68,7 +68,7 @@ internal partial class LogParser
|
||||
["SPU delay penalty:"] = SpuDelayPenalty(),
|
||||
["SPU loop detection:"] = SpuLoopDetection(),
|
||||
["Max SPURS Threads:"] = SpursThreadCount(),
|
||||
["SPU Block Size:"] = SpuBlockSize(),
|
||||
["Block Size:"] = SpuBlockSize(),
|
||||
["Enable TSX:"] = TsxMode(),
|
||||
["Accurate xfloat:"] = AccurateXfloat(),
|
||||
["Approximate xfloat:"] = ApproximateXfloat(),
|
||||
|
||||
@@ -85,7 +85,7 @@ internal partial class LogParser
|
||||
private static partial Regex SpuLoopDetection();
|
||||
[GeneratedRegex(@"Max SPURS Threads: (?<spurs_threads>\d*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex SpursThreadCount();
|
||||
[GeneratedRegex(@"SPU Block Size: (?<spu_block_size>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
[GeneratedRegex(@"SPU (Analyzer )?Block Size: (?<spu_block_size>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex SpuBlockSize();
|
||||
[GeneratedRegex(@"Enable TSX: (?<enable_tsx>[^\r\n]*?)\r?$", DefaultOptions)]
|
||||
private static partial Regex TsxMode();
|
||||
|
||||
@@ -564,7 +564,7 @@ internal static partial class LogParserResult
|
||||
if (items["spu_block_size"] is string spuBlockSize)
|
||||
{
|
||||
if (spuBlockSize != "Safe" && spuBlockSize != "Mega")
|
||||
notes.Add($"⚠️ Please change `SPU Block Size` to `Safe/Mega`, currently `{spuBlockSize}` is unstable.");
|
||||
notes.Add($"⚠️ Please change `SPU Analyzer Block Size` to `Safe/Mega`, currently `{spuBlockSize}` is unstable.");
|
||||
}
|
||||
|
||||
if (items["booting_savestate"] is DisabledMark)
|
||||
@@ -875,7 +875,7 @@ internal static partial class LogParserResult
|
||||
return;
|
||||
|
||||
if (items["spu_block_size"] is not null and not "Safe")
|
||||
notes.Add("ℹ️ Please set `SPU Block Size` to `Safe` to reduce crash rate");
|
||||
notes.Add("ℹ️ Please set `SPU Analyzer Block Size` to `Safe` to reduce crash rate");
|
||||
|
||||
if (items["frame_limit"] is not null and not "Off")
|
||||
notes.Add("⚠️ `Frame Limiter` should be `Off`");
|
||||
@@ -1015,7 +1015,7 @@ internal static partial class LogParserResult
|
||||
return;
|
||||
|
||||
if (items["spu_block_size"] is not null and not "Safe")
|
||||
notes.Add("ℹ️ Please set `SPU Block Size` to `Safe` to reduce crash rate");
|
||||
notes.Add("ℹ️ Please set `SPU Analyzer Block Size` to `Safe` to reduce crash rate");
|
||||
if (items["cpu_blit"] == EnabledMark)
|
||||
notes.Add("⚠️ Please disable `Force CPU Blit`");
|
||||
if (items["read_color_buffers"] == DisabledMark)
|
||||
|
||||
Reference in New Issue
Block a user