---
title: "Figma rendering: Powered by WebGPU"
description: "Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions."
url: "https://swe.quest/articles/figma-rendering-powered-by-webgpu-713739b05df2d0bb"
canonical: "https://www.figma.com/blog/figma-rendering-powered-by-webgpu/"
source: "Figma"
published: "2025-09-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["browsers","webassembly","c-cpp","performance","deployment"]
---

# Figma rendering: Powered by WebGPU

A post on [Figma](https://swe.quest/sources/figma.md), published 2025-09-18, 11 min read, Case study. Original: [https://www.figma.com/blog/figma-rendering-powered-by-webgpu/](https://www.figma.com/blog/figma-rendering-powered-by-webgpu/)

## Summary

Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions. Legacy WebGL 1 GLSL shaders are kept and automatically translated to WGSL via a custom shader processor plus naga, and Dawn is used for both the Emscripten/Wasm build and native server-side builds. Because WebGPU only supports asynchronous readback and can fail mid-session on Windows, Figma built a dynamic fallback that swaps backends to WebGL at runtime and blocklists devices by fallback rate. Benchmarks across Windows, Mac and ChromeOS showed gains on some device classes and neutral results elsewhere with no regressions, and compute shaders, MSAA and RenderBundles are next.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- GPU rendering pipeline basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- WebGL shaders and uniforms
- C++ to WebAssembly compilation ([easy posts on C & C++](https://swe.quest/tags/c-cpp.md?difficulty=easy))

## Keywords

WebGPU, WebGL, WGSL, GLSL, naga, Dawn, Emscripten, Figma

## Related posts

- [Keeping Figma fast](https://swe.quest/articles/keeping-figma-fast-eb21da7244ac5731.md): Figma · 2023-08-29 · Medium · 14 min read · Performance engineering, Testing, CI/CD, Web performance
  Figma replaced its single-MacBook performance testing setup with two systems sharing one CI scheduler.
- [WebGPU now available for testing in Safari Technology Preview](https://swe.quest/articles/webgpu-now-available-for-testing-in-safari-technology-preview-fb9a82b78536ace0.md): WebKit · 2023-12-21 · Medium · 3 min read · Browsers, JavaScript, Hardware
  Safari Technology Preview 185 ships an early WebGPU implementation, enabled via the "WebGPU", "GPU Process: DOM Rendering" and "GPU Process: Canvas Rendering" feature flags.
- [How Figma draws inspiration from the gaming world](https://swe.quest/articles/how-figma-draws-inspiration-from-the-gaming-world-d8a336bcdbd13832.md): Figma · 2023-05-03 · Easy · 13 min read · Real-time systems, WebAssembly, System design, Games, Debugging
  Figma's architecture resembles a game engine more than a typical web stack: a C++ canvas compiled to WebAssembly for 2D rendering, a React/TypeScript UI layer, and a Rust multiplayer server, plus layered systems for multiplayer, animation, collisions, chat and plugins.
- [Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI](https://swe.quest/articles/introducing-huggingface-kernels-200-webgpu-kernels-for-local-ai-9e38d7de6105d26d.md): Hugging Face · 2026-09-01 · Medium · 9 min read · Inference & serving, Browsers, Performance engineering, JavaScript, Open source
  Hugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories.
- [The evolution of Figma’s mobile engine: Compiling away our custom programming language](https://swe.quest/articles/the-evolution-of-figma-s-mobile-engine-compiling-away-our-custom-programming-4555b49211ef8f02.md): Figma · 2024-05-01 · Medium · 16 min read · Refactoring & migrations, TypeScript, Compilers, Performance engineering, JavaScript
  Figma migrated its prototype viewer's mobile engine from Skew, an in-house compile-to-JavaScript language, to TypeScript using a custom Skew-to-TypeScript transpiler and a three-phase rollout (write/build Skew, write Skew/build TypeScript, write/build TypeScript) that never paused development.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
