Rendering Pipeline

GPU Compositor Layers and will-change

Promotion of a DOM subtree to a dedicated GPU texture allowing the Compositor Thread to animate transform and opacity without Layout or Paint.

About this page
READ
2 min
Interactive Simulator

VRAM Cost of GPU Layer Promotion

Adjust the number of animated elements and toggle static will-change.

GPU Texture Stack & VRAM1 shared layer · 6 MB
VRAM Budget6 / 60 MB
Allocated GPU Layers
1
Estimated VRAM
6.0 MB
Promoted only during active transitions: minimal VRAM footprint.
VRAM Cost of GPU Layer Promotion

Under the Hood#

Like pre-printing actors onto transparent acetate cels before filming, layer promotion caches a subtree's rasterized bitmap in VRAM so the GPU only shifts or fades the cel instead of redrawing the entire scene.

  1. During the Layerize phase of the Browser Rendering Pipeline, Blink decides which PaintLayer objects receive their own CompositedLayer (transform: translate3d, will-change: transform, <video>, <canvas>).
  2. The engine rasterizes each layer's tiles and uploads them to GPU memory (VRAM).
  3. Subsequent frames only update the layer's transformation matrix on the GPU without recalculating Style, Layout, or Paint.
CSS
/* Promote only on intent, not permanently across 500 cards */
.card:hover {
  will-change: transform;
}

.card.is-animating {
  transform: translate3d(0, -4px, 0);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

Problem Genealogy#

  • 2011 (translateZ(0) hack): Developers discovered that a zeroed 3D transform tricked WebKit into GPU promotion, soon copy-pasted onto * { transform: translateZ(0); } with predictable VRAM consequences.
  • 2015 (will-change): Standardized hint warning the engine before an animation starts.
  • 2022+ (Blink Auto-compositing): Automatic promotion strictly for the active duration of CSS/WAAPI animations.

Production Pitfalls#

  • Layer Explosion: Elements overlapping an animated layer inside the same CSS Stacking Context are often promoted as well, silently multiplying VRAM consumption on mobile GPUs.
  • Blurry text or lost subpixel antialiasing: On some operating systems, a promoted layer switches from LCD subpixel rendering to grayscale antialiasing, and fractional transforms misalign Device Pixel Ratio & Subpixel boundaries.

Where this connects

Prerequisites

Next & related

Rendering Pipeline

Scroll-Driven Animations

Scroll progress updates on the Compositor Thread without main-thread scroll listeners.

Rendering Pipeline

View Transitions API

The ::view-transition pseudo-element tree animates captured textures on the compositor.

Seen in Architecture Autopsies