IGameTimerIdleTime Property |
Namespace: DigitalRune.Game.Timing
Most game timers can be configured to start a new time step only at certain intervals. For example, the FixedStepTimer only performs time steps at a fixed time interval such as 1/60 seconds (see StepSize). Or, the VariableStepTimer waits until at least a minimal amount of time has passed since the last time step (see MinDeltaTime).
IdleTime indicates the time that needs to pass until the next time step will be performed (see event TimeChanged).The Idle event is raised if IdleTime is greater than 0. The application can handle this event to perform additional tasks instead of waiting.
The property IdleTime is reset each time step.
The value is also scaled by Speed. Time, DeltaTime, IdleTime, and LostTime have the same scale. Except that IdleTime and LostTime cannot be negative. They always return the absolute value.