mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Shader Keywords Limit per log file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user