IT lexicon › Infra & Ops › Present extension (X11)

Present extension (X11)

Infra & Ops På svenska → Updated: 2026-10-09
More info
Creator
Keith Packard
Released
2013
Type
X extension

The X extension that lets a client say "show this pixmap in this window at the next frame" and be told when it actually happened — X11's way of doing vsync without the server having to understand OpenGL.

Until 2013, an X program that wanted to swap buffers in step with the display had to go through GLX and DRI2's SwapBuffers, which assumed both server and driver spoke OpenGL. Keith Packard wrote Present to pull that one piece out: a single request, PresentPixmap, asking the server to copy or flip the contents of a pixmap into a window at a given frame, counted in MSC, the media stream counter. The server answers with CompleteNotify when the swap really became visible, timestamp included, and IdleNotify when the client may reuse the pixmap. If the window covers the screen and nothing sits in the way, the result is a genuine page flip rather than a copy.

The extension shipped in X.Org Server 1.15 in December 2013 together with DRI3, which handles the buffer sharing itself through file descriptors, and the pair replaced DRI2. Mesa's GL and Vulkan support for X11 is built on the two, Xwayland translates PresentPixmap straight into the Wayland compositor's frames, and a compositing window manager can use the same mechanism for its own overlay window. It is one of the few cases of X11 getting a modern display pipeline after the fact, and it was finished just before most people stopped caring.

← Back to the lexicon