While this does not make garbage collection faster overall, distributing the workload over multiple frames can significantly reduce the problem of garbage collection “spikes” that break the smoothness of your application.
Use Incremental Garbage Collection to avoid micro-freezing in your app!
Incremental garbage collection spreads out the process of garbage collection over multiple frames.
Navigate to Edit > Project Settings > Player and check Use incremental GC.
#Unity#madewithunity#UnityTips
This means that instead of one long interruption to your program’s execution to allow the garbage collector to do its work, Unity makes multiple, much shorter interruptions.