Shader Keywords Limit per log file

This commit is contained in:
Natsumi
2021-04-14 01:01:21 +12:00
parent bde43053d7
commit eb6bf73386
+3 -3
View File
@@ -160,6 +160,7 @@ namespace VRCX
{ {
try try
{ {
ShaderKeywordsLimitReached = false;
using (var stream = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 65536, FileOptions.SequentialScan)) using (var stream = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 65536, FileOptions.SequentialScan))
{ {
stream.Position = logContext.Position; stream.Position = logContext.Position;
@@ -276,7 +277,6 @@ namespace VRCX
location, location,
logContext.RecentWorldName logContext.RecentWorldName
}); });
ShaderKeywordsLimitReached = false;
return true; return true;
} }
@@ -385,12 +385,12 @@ namespace VRCX
{ {
// 2021.04.04 12:21:06 Error - Maximum number (256) of shader keywords exceeded, keyword _TOGGLESIMPLEBLUR_ON will be ignored. // 2021.04.04 12:21:06 Error - Maximum number (256) of shader keywords exceeded, keyword _TOGGLESIMPLEBLUR_ON will be ignored.
if (string.Compare(line, offset, "Maximum number (256) of shader keywords exceeded", 0, 48, StringComparison.Ordinal) != 0) if (ShaderKeywordsLimitReached == true)
{ {
return false; return false;
} }
if (ShaderKeywordsLimitReached == true) if (string.Compare(line, offset, "Maximum number (256) of shader keywords exceeded", 0, 48, StringComparison.Ordinal) != 0)
{ {
return false; return false;
} }