| FixedStepTimerStepSizeTolerance Property |
Gets or sets the allowed step size deviation.
Namespace: DigitalRune.Game.TimingAssembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax public TimeSpan StepSizeTolerance { get; set; }
Public Property StepSizeTolerance As TimeSpan
Get
Set
public:
property TimeSpan StepSizeTolerance {
TimeSpan get ();
void set (TimeSpan value);
}
member StepSizeTolerance : TimeSpan with get, set
Property Value
Type:
TimeSpanThe 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