Click or drag to resize
DigitalRuneIGameClockResetDeltaTime Method
Resets the time measurement for the current DeltaTime. The next DeltaTime will be the time since ResetDeltaTime was called.

Namespace: DigitalRune.Game.Timing
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
void ResetDeltaTime()
Remarks
DeltaTime represents the time since the last TimeChanged event. If there are long-running operations, it can happen that it takes a long time until the next TimeChanged event is raised, and DeltaTime is a very large value that is not useful for the game logic. For example, this could cause large jumps in the motion of objects. To avoid this problem, call ResetDeltaTime after a long-running operation to restart the time measurement for DeltaTime.
See Also