Shader Keywords Limit per log file

This commit is contained in:
Natsumi
2021-04-16 21:51:51 +12:00
parent 766c7af840
commit a531821332

View File

@@ -19,6 +19,7 @@ namespace VRCX
public long Length;
public long Position;
public string RecentWorldName;
public bool ShaderKeywordsLimitReached = false;
}
public static readonly LogWatcher Instance;
@@ -28,7 +29,6 @@ namespace VRCX
private readonly List<string[]> m_LogList;
private Thread m_Thread;
private bool m_ResetLog;
private static bool ShaderKeywordsLimitReached = false;
// NOTE
// FileSystemWatcher() is unreliable
@@ -276,7 +276,6 @@ namespace VRCX
location,
logContext.RecentWorldName
});
ShaderKeywordsLimitReached = false;
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.
if (ShaderKeywordsLimitReached == true)
if (logContext.ShaderKeywordsLimitReached == true)
{
return false;
}
@@ -402,7 +401,7 @@ namespace VRCX
"event",
"Shader Keyword Limit has been reached"
});
ShaderKeywordsLimitReached = true;
logContext.ShaderKeywordsLimitReached = true;
return true;
}