Enum DisplayServer.VSyncMode
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum DisplayServer.VSyncMode : long
Fields
Adaptive = 2
Behaves like Disabled when the framerate drops below the screen's refresh rate to reduce stuttering (tearing may be visible). Otherwise, vertical synchronization is enabled to avoid tearing. Framerate is limited by the monitor refresh rate (regardless of MaxFps). Behaves like Enabled when using the Compatibility rendering method.
Disabled = 0
No vertical synchronization, which means the engine will display frames as fast as possible (tearing may be visible). Framerate is unlimited (regardless of MaxFps).
Enabled = 1
Default vertical synchronization mode, the image is displayed only on vertical blanking intervals (no tearing is visible). Framerate is limited by the monitor refresh rate (regardless of MaxFps).
Mailbox = 3
Displays the most recent image in the queue on vertical blanking intervals, while rendering to the other images (no tearing is visible). Framerate is unlimited (regardless of MaxFps).
Although not guaranteed, the images can be rendered as fast as possible, which may reduce input lag (also called "Fast" V-Sync mode). Mailbox works best when at least twice as many frames as the display refresh rate are rendered. Behaves like Enabled when using the Compatibility rendering method.