mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
improve GC collection
This commit is contained in:
1 parent
992bdbcbf8
commit
0a0ad74419
1 file changed
+2
-1
@@ -366,7 +366,8 @@ public static class Extensions
|
||||
public static void ClearGarbageCollector()
|
||||
{
|
||||
Resources.UnloadUnusedAssets();
|
||||
GC.Collect();
|
||||
Il2CppSystem.GC.Collect(0, Il2CppSystem.GCCollectionMode.Forced);
|
||||
GC.Collect(0, GCCollectionMode.Forced);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user