VariableStepTimerMinDeltaTime Property |
Namespace: DigitalRune.Game.Timing
Exception | Condition |
---|---|
ArgumentException | value is negative. |
The timer waits until at least this amount of time has passed before a new TimeChanged event is raised. Use this value to limit the frame rate. For example: MinDeltaTime = new TimeSpan(166666) limits the frame rate to 60 Hz.
MinDeltaTime causes the application to wait until the enough time has elapsed to perform the next time step. During the waiting time the Idle event is raised. This event can be used to perform additional work instead of waiting. IdleTime indicates the remaining time until the next time step occurs.
MinDeltaTime ≤ DeltaTime ≤ MaxDeltaTime.