Partager via


PresentInterval Enumeration

Defines flags that describe the relationship between the adapter refresh rate and the rate at which Present operations are completed.

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

Syntax

public enum PresentInterval

Members

  Member name Description
Default Equivalent to setting One.
One The driver waits for the vertical retrace period (the runtime will beam trace to prevent tearing). Present operations are not affected more frequently than the screen refresh rate; the runtime completes one Present operation per adapter refresh period, at most. This option is always available for both windowed and full-screen swap chains.
Two The driver waits for the vertical retrace period. Present operations are not affected more frequently than every second screen refresh. Check the PresentInterval property to determine whether the driver supports this option.
Three The driver waits for the vertical retrace period. Present operations are not affected more frequently than every third screen refresh. Check the PresentInterval property to determine whether the driver supports this option.
Four The driver waits for the vertical retrace period. Present operations are not affected more frequently than every fourth screen refresh. Check the PresentInterval property to determine whether the driver supports this option.
Immediate The runtime updates the window client area immediately, and might do so more than once during the adapter refresh period. Present operations might be affected immediately. This option is always available for both windowed and full-screen swap chains.

See Also

Reference

GraphicsDeviceCapabilities.PresentInterval Property
PresentationParameters.PresentationInterval Property
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista