update vertex cache checks

This commit is contained in:
13xforever 2020-01-25 03:36:03 +05:00
parent 7dd567a0cf
commit 2e273a5cfd
2 changed files with 6 additions and 6 deletions

View File

@ -49,11 +49,9 @@ namespace CompatBot.Utils.ResultFormatters
}
if (items["stretch_to_display"] == EnabledMark)
notes.Add("🤢 `Stretch to Display Area` is enabled");
if (KnownDisableVertexCacheIds.Contains(serial))
{
if (items["vertex_cache"] == DisabledMark)
notes.Add("⚠ This game requires disabling `Vertex Cache` in the GPU tab of the Settings");
}
var vertexCacheDisabled = items["vertex_cache"] == EnabledMark || items["mtrsx"] == EnabledMark;
if (KnownDisableVertexCacheIds.Contains(serial) && !vertexCacheDisabled)
notes.Add("⚠ This game requires disabling `Vertex Cache` option");
if (items["rsx_not_supported"] is string notSupported)
{
@ -155,9 +153,10 @@ namespace CompatBot.Utils.ResultFormatters
notes.Add("⚠ `Write Color Buffers` is disabled, please enable");
}
if (items["vertex_cache"] == EnabledMark
&& items["mtrsx"] == DisabledMark
&& !string.IsNullOrEmpty(serial)
&& !KnownDisableVertexCacheIds.Contains(serial))
notes.Add("⚠ `Vertex Cache` is disabled, please re-enable");
notes.Add(" `Vertex Cache` is disabled, and may impact performance");
if (items["frame_skip"] == EnabledMark)
notes.Add("⚠ `Frame Skip` is enabled, please disable");
if (items["cpu_blit"] is string cpuBlit

View File

@ -95,6 +95,7 @@ namespace CompatBot.Utils.ResultFormatters
private static readonly string[] KnownDisableVertexCacheIds =
{
"NPEB00258", "NPUB30162", "NPJB00068", // scott pilgrim
"NPEB00303", "NPUB30242", "NPHB00229", // crazy taxi
};
private static readonly HashSet<string> KnownNoApproximateXFloatIds = new HashSet<string>