---
name: "SDL_HINT_VIDEO_DOUBLE_BUFFER"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HINT_VIDEO_DOUBLE_BUFFER"
---

# SDL\_HINT\_VIDEO\_DOUBLE\_BUFFER(3)

Tell the video driver that we only want a double buffer.

## NAME

SDL\_HINT\_VIDEO\_DOUBLE\_BUFFER - Tell the video driver that we only want a double buffer.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_HINT\_VIDEO\_DOUBLE\_BUFFER** *SDL\_VIDEO\_DOUBLE\_BUFFER"*

## DESCRIPTION

By default, most lowlevel 2D APIs will use a triple buffer scheme that wastes no CPU time on waiting for vsync after issuing a flip, but introduces a frame of latency. On the other hand, using a double buffer scheme instead is recommended for cases where low latency is an important factor because we save a whole frame of latency.

We do so by waiting for vsync immediately after issuing a flip, usually just after eglSwapBuffers call in the backend's \*\_SwapWindow function.

This hint is currently supported on the following drivers:

• Raspberry Pi (raspberrypi)

• Wayland (wayland)

This hint should be set before SDL is initialized.

## AVAILABILITY

This hint is available since SDL 3.2.0.
