check for stretched display and move disable vertex cache check

This commit is contained in:
13xforever 2019-09-08 01:46:32 +05:00
parent 4e6ce53513
commit 03dd80d4cb
4 changed files with 9 additions and 7 deletions

View File

@ -107,6 +107,7 @@ namespace CompatBot.EventHandlers.LogParsing
["Read Depth Buffer:"] = new Regex("Read Depth Buffer: (?<read_depth_buffer>.*?)\r?$", DefaultOptions),
["VSync:"] = new Regex("VSync: (?<vsync>.*?)\r?$", DefaultOptions),
["GPU texture scaling:"] = new Regex("Use GPU texture scaling: (?<gpu_texture_scaling>.*?)\r?$", DefaultOptions),
["Stretch To Display Area:"] = new Regex("Stretch To Display Area: (?<stretch_to_display>.*?)\r?$", DefaultOptions),
["Strict Rendering Mode:"] = new Regex("Strict Rendering Mode: (?<strict_rendering_mode>.*?)\r?$", DefaultOptions),
["Occlusion Queries:"] = new Regex("Occlusion Queries: (?<zcull>.*?)\r?$", DefaultOptions),
["Vertex Cache:"] = new Regex("Disable Vertex Cache: (?<vertex_cache>.*?)\r?$", DefaultOptions),

View File

@ -33,7 +33,7 @@ namespace CompatBot.EventHandlers
public static async Task MonitorAsync(DiscordClient client)
{
var lastCheck = DateTime.UtcNow.AddDays(-1);
var resetThreshold = TimeSpan.FromMinutes(5);
var resetThreshold = TimeSpan.FromMinutes(10);
try
{
while (!Config.Cts.IsCancellationRequested)

View File

@ -364,12 +364,6 @@ namespace CompatBot.Utils.ResultFormatters
notes.Add("⚠ An old version of the 60 fps patch is used");
}
if (KnownDisableVertexCacheIds.Contains(serial))
{
if (items["vertex_cache"] == DisabledMark)
notes.Add("⚠ This game requires disabling `Vertex Cache` in the GPU tab of the Settings");
}
bool discInsideGame = false;
bool discAsPkg = false;
var pirateEmoji = discordClient.GetEmoji(":piratethink:", DiscordEmoji.FromUnicode("🔨"));

View File

@ -41,6 +41,13 @@ namespace CompatBot.Utils.ResultFormatters
if (dimensions.Length > 1 && int.TryParse(dimensions[1], out var height) && height < 720)
notes.Add("⚠ `Resolution` below 720p will not improve performance");
}
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");
}
if (items["ppu_decoder"] is string ppuDecoder)
{