update spu block size parsing in logs

This commit is contained in:
13xforever
2025-12-03 03:22:10 +05:00
parent afbd7565f1
commit 2aed2b3487
3 changed files with 5 additions and 5 deletions

View File

@@ -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(),

View File

@@ -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();

View File

@@ -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)