mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 20:50:44 -05:00
Enabled memory fragmentation handling
This commit is contained in:
parent
1a08680bdd
commit
1cf5085727
@ -29,7 +29,7 @@ public class MemoryManager : MonoBehaviour
|
|||||||
private Task CollectMemory()
|
private Task CollectMemory()
|
||||||
{
|
{
|
||||||
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
|
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
|
||||||
GC.Collect(2, GCCollectionMode.Optimized, false, false);
|
GC.Collect(2, GCCollectionMode.Optimized, false, true);
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user