---
title: "Multiple WebGL contexts (smooth/multiple-webgl-contexts)"
description: "smooth/multiple-webgl-contexts: Each WebGL context has its own GPU state and memory; browsers cap them (≈16) and mobile GPUs struggle with more than one."
canonical: https://void-design.vercel.app/rules/smooth/multiple-webgl-contexts
lastModified: 2026-09-16
---

# Multiple WebGL contexts

`smooth/multiple-webgl-contexts` · severity **warn** · category Smoothness · detected by `void smooth` and `void audit`

## Why it matters

Each WebGL context has its own GPU state and memory; browsers cap them (≈16) and mobile GPUs struggle with more than one.

## How to fix it

Share one canvas/renderer across scenes (scissor/viewport per view) or render secondary visuals as video/images.

## More smoothness rules

`void smooth` reports 13 rules in this category. How the page feels after it loads: dropped frames during a scripted scroll, long animation frames, INP of real clicks, shifts after input, animated layout properties, idle rAF loops and reduced-motion handling.

- `layout-shift-after-input` Layout shifts long after an interaction — [smooth/layout-shift-after-input](https://void-design.vercel.app/rules/smooth/layout-shift-after-input)
- `layout-shift-on-scroll` Layout shifts while scrolling — [smooth/layout-shift-on-scroll](https://void-design.vercel.app/rules/smooth/layout-shift-on-scroll)
- `animate-layout-property` Animation of a layout-triggering property — [smooth/animate-layout-property](https://void-design.vercel.app/rules/smooth/animate-layout-property)
- `transition-all` transition: all — [smooth/transition-all](https://void-design.vercel.app/rules/smooth/transition-all)
- `will-change-overuse` will-change is applied too broadly — [smooth/will-change-overuse](https://void-design.vercel.app/rules/smooth/will-change-overuse)
- `reduced-motion-ignored` Animations keep running with prefers-reduced-motion — [smooth/reduced-motion-ignored](https://void-design.vercel.app/rules/smooth/reduced-motion-ignored)
- `raf-loop-idle` requestAnimationFrame loop runs while idle — [smooth/raf-loop-idle](https://void-design.vercel.app/rules/smooth/raf-loop-idle)
- `scroll-timeline-no-fallback` Content is invisible without scroll-driven-animation support — [smooth/scroll-timeline-no-fallback](https://void-design.vercel.app/rules/smooth/scroll-timeline-no-fallback)

Detected by `void smooth` and `void audit`. Explain it in a terminal: `void rules smooth/multiple-webgl-contexts`
