GameTimer.UpdateInterval Property

Note

This property is available only when developing for Windows Phone.

Gets or sets the update interval for the action.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public TimeSpan UpdateInterval { get; set; }

Property Value

The interval at which the Update event is invoked for this GameTimer. If set to TimeSpan.Zero, the Update method is invoked at a variable time step.

Remarks

If you explicitly set the UpdateInterval, take care not to set it to be too short; if the Update method consistently runs longer than the time interval set by UpdateInterval, game performance will suffer as a result.

See Also

Reference

GameTimer Class
GameTimer Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone