TSdlGpuPresentMode
Specifies the timing that will be used to present swapchain textures to the OS.
VSync mode will always be supported. Immediate and Mailbox modes may not be supported on certain systems.
It is recommended to query TSdlGpuDevice.WindowSupportsPresentMode after claiming the window if you wish to change the present mode to Immediate or Mailbox.
- VSync: Waits for vblank before presenting. No tearing is possible. If there is a pending image to present, the new image is enqueued for presentation. Disallows tearing at the cost of visual latency.
- Immediate: Immediately presents. Lowest latency option, but tearing may occur.
- Mailbox: Waits for vblank before presenting. No tearing is possible. If there is a pending image to present, the pending image is replaced by the new image. Similar to VSync, but with reduced visual latency.
Definition
Unit: Neslib.Sdl3.Gpu
See Also
- TSdlGpuDevice.SetSwapchainParameters
- TSdlGpuDevice.WindowSupportsPresentMode
- TSdlGpuCommandBuffer.WaitAndAcquireSwapchainTexture