mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
fix some performance issues
This commit is contained in:
parent
7e87dc61e7
commit
90a25c23dc
5 changed files with 25 additions and 9 deletions
|
|
@ -155,6 +155,7 @@ public class TransientResourceManager : IDisposable
|
|||
filePath = filePath.ToLowerInvariant().Replace("\\", "/", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
var replacedGamePath = gamePath.ToLowerInvariant().Replace("\\", "/", StringComparison.OrdinalIgnoreCase);
|
||||
if (string.Equals(filePath, replacedGamePath, StringComparison.OrdinalIgnoreCase)) return;
|
||||
|
||||
if (TransientResources[gameObject].Contains(replacedGamePath) ||
|
||||
SemiTransientResources.Any(r => r.Value.Any(f =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue