Skip to content

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

type TSdlGpuPresentMode = (VSync, Immediate, Mailbox)

See Also

Enumeration Values

VSync = SDL_GPU_PRESENTMODE_VSYNC


Immediate = SDL_GPU_PRESENTMODE_IMMEDIATE


Mailbox = SDL_GPU_PRESENTMODE_MAILBOX