| HighPrecisionClockResetDeltaTime Method |
Namespace: DigitalRune.Game.TimingAssembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax public void ResetDeltaTime()
Public Sub ResetDeltaTime
public:
virtual void ResetDeltaTime() sealed
abstract ResetDeltaTime : unit -> unit
override ResetDeltaTime : unit -> unit
Implements
IGameClockResetDeltaTimeRemarks 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