diff --git a/Source/Engine/Engine/NativeInterop.Unmanaged.cs b/Source/Engine/Engine/NativeInterop.Unmanaged.cs index 0391974b6..5af1569b9 100644 --- a/Source/Engine/Engine/NativeInterop.Unmanaged.cs +++ b/Source/Engine/Engine/NativeInterop.Unmanaged.cs @@ -1181,7 +1181,10 @@ namespace FlaxEngine.Interop [UnmanagedCallersOnly] internal static void GCCollect(int generation, int mode, bool blocking, bool compacting) { + // TODO: fix stall on iOS with AOT +#if !USE_AOT GC.Collect(generation, (GCCollectionMode)mode, blocking, compacting); +#endif } [UnmanagedCallersOnly]