Table of Contents

Enum PresentInterval

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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

public enum PresentInterval

Fields

Default = 1

Equivalent to setting One.

Immediate = 0

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.

One = 1

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 = 2

The driver waits for the vertical retrace period. Present operations are not affected more frequently than every second screen refresh.