Shader Keywords Limit per log file

This commit is contained in:
Natsumi
2021-04-16 21:51:51 +12:00
parent 766c7af840
commit a531821332
+3 -4
View File
@@ -19,6 +19,7 @@ namespace VRCX
public long Length; public long Length;
public long Position; public long Position;
public string RecentWorldName; public string RecentWorldName;
public bool ShaderKeywordsLimitReached = false;
} }
public static readonly LogWatcher Instance; public static readonly LogWatcher Instance;
@@ -28,7 +29,6 @@ namespace VRCX
private readonly List<string[]> m_LogList; private readonly List<string[]> m_LogList;
private Thread m_Thread; private Thread m_Thread;
private bool m_ResetLog; private bool m_ResetLog;
private static bool ShaderKeywordsLimitReached = false;
// NOTE // NOTE
// FileSystemWatcher() is unreliable // FileSystemWatcher() is unreliable
@@ -276,7 +276,6 @@ namespace VRCX
location, location,
logContext.RecentWorldName logContext.RecentWorldName
}); });
ShaderKeywordsLimitReached = false;
return true; return true;
} }
@@ -385,7 +384,7 @@ 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 (ShaderKeywordsLimitReached == true) if (logContext.ShaderKeywordsLimitReached == true)
{ {
return false; return false;
} }
@@ -402,7 +401,7 @@ namespace VRCX
"event", "event",
"Shader Keyword Limit has been reached" "Shader Keyword Limit has been reached"
}); });
ShaderKeywordsLimitReached = true; logContext.ShaderKeywordsLimitReached = true;
return true; return true;
} }