语言English
  • C#

GarbageCollector.isIncremental

public static bool isIncremental;

描述

报告是否启用了增量垃圾回收。

IsIncremental 如果在项目 PlayerSettings 中启用了增量垃圾回收并且在当前运行的平台上受支持,则为 true。否则,该值为 false。

使用 incrementalTimeSliceNanoseconds 设置增量收集步骤的目标长度。使用 CollectIncremental 手动触发增量垃圾回收步骤。

其他资源:PlayerSettings.gcIncremental


Did you find this page useful? Please give it a rating: