GraphicsDeviceManager.SynchronizeWithVerticalRetrace Property (Microsoft.Xna.Framework)

Indicates the desire for vsync when presenting the back buffer.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public bool SynchronizeWithVerticalRetrace { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Boolean
Vsync limits the frame rate of the game to the monitor referesh rate to prevent screen tearing. When called at startup this will automatically set the vsync mode during initialization. If set after startup you must call ApplyChanges() for the vsync mode to be changed.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop