Studio render of several frosted glass panes of different warm neutral tints stacked with slight offsets, merging into one aluminium frame

Reference · 2 min read

Desktop composition and surfaces

Desktop composition combines the visual surfaces produced by applications into the image presented on a screen. It lets the operating system manage overlapping windows, effects, and presentation without each program drawing directly over every other one.

How the pieces connect

Applications render into surfaces that the compositor can arrange and combine. Timing coordinates when a completed image becomes available for presentation. The rendering process, composition process, and display scanout can involve different queues and resources. A smooth-looking desktop depends on their cooperation, not solely on the speed of one application's drawing commands.

An everyday example

Moving a translucent window over another application does not require the underlying program to understand the entire desktop layout. The compositor can combine their surfaces according to the current arrangement. A video player may use a different presentation path from a static document window while still appearing within the same overall desktop.

Reading the information in context

A visible pause can arise at several stages, so observation alone does not isolate a single graphics component. Refresh timing, application work, and system scheduling all contribute. This page is not a diagnosis of a particular display experience. It explains why rendering and presenting are separate activities and why a single utilization percentage cannot describe the complete visual path.

Reading map: Desktop composition and surfacesFirst 3 topics in reading order: How the pieces connect; An everyday example; Reading the information in context. Each topic links to its section or page.INSIDE THIS PAGEDesktop composition and surfaces1How the pieces connect1 paragraph2An everyday example1 paragraph3Reading the informationin context1 paragraph

Display & Graphics

Note these before you change anything

Useful facts to have to hand while reading about desktop composition and surfaces.

  • Current driver version and date from the adapter's Driver tab
  • Resolution, refresh rate and scaling for each monitor
  • Which port and cable each display uses
  • Any per-application graphics settings you changed

Display & Graphics: Drawing a frame (output)

  1. Applicationrequests drawing
  2. Graphics APIfor example DirectX or Vulkan
  3. Display driveruser and kernel parts
  4. GPUrenders the frame
  5. Monitorover the display cable
Conceptual schematic of a selected path, not every request. Reads from software towards the device. Real systems add services, filter drivers and firmware not shown. Highlighted: the layer a driver change affects.