The class responsible for driving the engine's main loop.
负责驱动引擎主循环的类。
静态
Force the next frame to be rendered. This flag is automatically cleared after rendering.
强制渲染下一帧。渲染后该标记会自动清除。
The interval time of each frame in milliseconds.
每帧的间隔时间,单位为毫秒。
The start time of the current frame in milliseconds.
当前帧的开始时间,单位为毫秒。
The frame number of the last run.
最近一次运行的帧号。
Custom frame update predicate function. The function signature is: function(timestamp:number):boolean;
自定义帧更新条件函数,函数签名为:function(timestamp:number):boolean;
Indicates whether the engine is in step mode. When true, Timer will use a fixed frame interval instead of real elapsed time. This ensures animations advance by exactly one frame during step execution.
指示引擎是否处于单步模式。 为 true 时,Timer 将使用固定的帧间隔而非真实经过的时间。 这确保了动画在单步执行时精确前进一帧。
Throttle mode: 0 - none, normal frame rate; 1 - half frame rate; 2 - full frame after mouse activity, half frame rate after 2 seconds of mouse inactivity; 3 - fixed 1 frame per second;
限能模式:0-无,正常帧率运行; 1-帧率减半; 2-鼠标活动后满帧,鼠标不动2秒后满帧减半; 3-固定每秒1帧;
Pauses or resumes the rendering loop.
暂停或恢复渲染循环。
En
The class responsible for driving the engine's main loop.
Zh
负责驱动引擎主循环的类。