Click or drag to resize
DigitalRuneFixedStepTimerSpeed Property
Gets or sets the speed ratio at which the game time progresses.

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

Property Value

Type: Double
The speed ratio. The default value is 1.0.

Implements

IGameTimerSpeed
Remarks

Each timer is bound to a IGameClock. Speed defines how fast the time progresses in comparison to the IGameClock. A value of 2.0 means that this timer advances twice as fast as the real time. A value less than 1.0 creates a slow motion effect. Negative values should be handled with caution: The game logic needs to be able to deal with negative values.

Changing Speed only effects future time changes, i.e. it does not affect the current Time or DeltaTime.

See Also