PresentInterval Enumeration (Microsoft.Xna.Framework.Graphics)

Defines how Present() updates the game window.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public enum PresentInterval

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The PresentInterval type exposes the following members.

  Platforms Name Description
Default Equivalent to One
Immediate The driver updates the window client area immediately. Present operations might be affected immediately. There is no limit for framerate. 
One The driver waits for the vertical retrace period, before updating window client area. Present operations are not affected more frequently than the screen refresh rate. 
Two The driver waits for the vertical retrace period, before updating window client area. Present operations are not affected more frequently than every second screen refresh. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web