Time.maximumDeltaTime 最大增量时间

static var maximumDeltaTime : float

Description描述

The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate)

一帧能获得的最大时间。物理和其他固定帧速率更新(像FixedUpdate)。

will be performed only for this duration of time per frame.

仅此每帧的持续时间将被执行。

Use this function to avoid low frame rate spikes occurring due to combination of GarbageCollector and expensive physics or other fixed frame rate updates.

使用这个函数避免低帧速率峰值发生由于垃圾收集器和昂贵的物理或其它固定帧速率更新。

If frame will take longer than specified value, then less physics and other fixed frame rate updates will be performed. That will temporarily slow down the gameplay, but will allow frame rate to catchup avoiding nasty stuttering.

如果帧获得的比给定的值长,那么就减少物理和其他固定帧速率更新将被执行,这将暂时减慢的游戏,但是允许帧速率追赶上,避免讨厌的时断时续。

It is advisable to keep maximum time for frame between 1/10th and 1/3th of a second.

这最好是帧保持最大时间在1秒的十分之一和三分之一之间。

Page last updated: 2010-12-27