Click or drag to resize
DigitalRuneFixedStepTimerStepSizeTolerance Property
Gets or sets the allowed step size deviation.

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

Property Value

Type: TimeSpan
The allowed step size deviation. The default value is 0.25 ms.
Remarks
If the difference of the elapsed time and the target StepSize is less than StepSizeTolerance, then the deviation is ignored and the elapsed time is clamped to exactly StepSize. A small allowed deviation is important if a game with a target frame rate of 60 Hz uses vsync and runs on a monitor with a different frame rate, e.g. 59.94 Hz NTSC display.
See Also