Click or drag to resize
DigitalRuneVariableStepTimerMinDeltaTime Property
Gets or sets the minimal size of a time step.

Namespace: DigitalRune.Game.Timing
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public TimeSpan MinDeltaTime { get; set; }

Property Value

Type: TimeSpan
The minimal amount of time for time step. The default value is 0.
Exceptions
ExceptionCondition
ArgumentExceptionvalue is negative.
Remarks

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.

MinDeltaTimeDeltaTimeMaxDeltaTime.

See Also