Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


gcIncremental

Allows you to enable or disable incremental mode for garbage collection.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool gcIncremental { get; set; }

Remarks

Incremental mode is a feature which tries to reduce the interruption times caused by garbage collection. When enabled, the garbage collection task is split into smaller slices which are performed incrementally instead of all at once. Instead of fewer long interruptions you will get more shorter interruptions, which could benefit the consistency of your project's frame rate and make your content run smoother. To learn more about how to judge whether this will benefit your project, see Memory in Unity.