文档

Unity Engine

Download Unity

Unity Engine

VariableRateManager(uint, bool)

Construct a RateUtils.VariableRateManager with a given Millisecond update rate.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public VariableRateManager(uint updateRateInMS = 66, bool pushToWorld = true)

Parameters

updateRateInMS

The update rate for the manager in Milliseconds, if the value is less then MinUpdateRateMS it will be set to it.

pushToWorld

Should TimeData be pushed onto the world? If systems inside of this group do not require the use of the Time, a minor performance gain can be made setting this to false.

Remarks

Utilizes an accumulator where when it exceeds the indicated tick count, triggers the update and resets the counter.