0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 15:10:44 -05:00

Enabled memory fragmentation handling

This commit is contained in:
Dev 2024-11-20 16:21:21 +00:00
parent 1a08680bdd
commit 1cf5085727

View File

@ -29,7 +29,7 @@ public class MemoryManager : MonoBehaviour
private Task CollectMemory()
{
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
GC.Collect(2, GCCollectionMode.Optimized, false, false);
GC.Collect(2, GCCollectionMode.Optimized, false, true);
return Task.CompletedTask;
}