Bugfixes for world object caches not clearing when reloading without restart and retextures of a small number of things like fire not working

This commit is contained in:
bbradson
2023-06-08 18:57:10 +02:00
parent d7ff5b96cd
commit 76c0f7a371
7 changed files with 14 additions and 5 deletions
+4
View File
@@ -15,6 +15,8 @@ public static class Utility
{
public static event Action<Thing>? ThingDestroyed; // TODO
public static event Action? Cleared;
private static volatile int _destroyedThingCounter, _lastGCTick, _gcRate = 1000;
private static int _currentGCProgress;
private static volatile bool _gcInProgress;
@@ -88,6 +90,8 @@ public static class Utility
{
foreach (var cache in All)
cache.Clear();
Cleared?.Invoke();
}
public static void LogCurrentCacheUtilization()