improve GC collection

This commit is contained in:
XtraCube committed 2026-07-20 20:02:29 -04:00
1 parent 992bdbcbf8
commit 0a0ad74419
1 file changed
+2 -1
+2 -1
View File
@@ -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>