Feature Library
5.68 GPU · 0.15 CPU ms
A still of the Fibre light demo
Still
The live demo starts when it’s in view.Drag or use the arrow keys to look around · Enter to replay · Escape to reset the view

Light racing through glass fibres: a laser lights a bundle’s polished face, the light’s front runs down thousands of fibres, out through a network of glass…

What it costs a frame

5.68 ms
0.15 ms
GPU
5.68 ms
CPU, median
0.15 ms
CPU, 95th pct
0.26 ms
Draw calls
0
Weight
Heavy

Measured 11 November 2026 on 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept. What ran: The whole show played over and over at Effect speed 1 (medium quality, about 3,000 fibres at 84 segments each, 63 beads): the room traced, the fibres and beads blended by weight, the plate, a quarter-size bloom and the composite; timed with its own timestamp queries. Phones: tiers are being measured next.

On every machine it was measured on
MachineGPU msCPU msCPU p95
unknown GPU · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring tool5.680.150.26
apple · Apple A19 Proin a browser tab · 16 November 20266.320.400.50
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 20263.800.340.55

Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.

What it needs

Renders with
WebGPUNeeds WebGPU: current Chrome and Edge, Safari 26+, Firefox 141+ on Windows.
Your browser
Checking…Looking for WebGPU
Depends on
NothingNo other packages

What it’s for

  1. Title cards and splash screens
  2. The opening of a talk or a live show
  3. A hero section about networks, data or signals
  4. Loading moments with a progress to show
  5. A held, calm moment on a stage that stays alive

Pitfalls, in brief

  1. Planning the fibres is CPU work (tens of ms for a few thousand): call setEngraving once per change of words, never per frame, and debounce typing.
  2. The thoughts run on the view’s time: give the same time for the same frame (a show stays deterministic), and move it on only while the hold should stay alive.
  3. Draw at the canvas’s own width and height: size it (CSS size × devicePixelRatio) before drawing, or it draws at 300 × 150.
  4. draw returns false while the last frame is still on the GPU: keep the change pending and draw again next frame, or the last moment may be missed.
  5. Every fibre is one instance of segments × 6 vertices; the high quality is several million vertices a frame.
3 more in brief
  1. The engraving is drawn with the font you name: wait for the page’s fonts (document.fonts.ready) first, or the letters are planned in a fallback font.
  2. The camera is fitted to the canvas’s shape (tourAt, fitLens): a narrow canvas draws back to keep the 16:9 width; a camera of your own needs the same care on a phone.
  3. Without WebGPU createFibreLight returns null: draw drawFibreStill on a 2D canvas instead.
8 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

From SpaciousPro. Fully custom code.

Morgan McGuire & Louis Bavoil, Weighted Blended Order-Independent Transparency (2013): The fibres’ and beads’ glass is accumulated by weight and resolved in one pass, in any order (the weight function is the module’s own).

Edwin Catmull & Raphael Rom, A Class of Local Interpolating Splines (1974): Each fibre is a Catmull–Rom curve through its control points, evaluated in the vertex shader.

Mark Jarzynski & Marc Olano, Hash Functions for GPU Rendering (2020): Their PCG hash (from Melissa O’Neill’s PCG family) replaces the original shader’s sine hashes and the plan’s generator.

Krzysztof Narkowicz, ACES Filmic Tone Mapping Curve (2016): His fit of the ACES curve tone maps the composite (as in the source).

Christophe Schlick, An Inexpensive BRDF Model for Physically-based Rendering (1994): Schlick’s approximation of the Fresnel term on the fibres, the beads and the plate.

Helmut Vogel, A better way to construct the sunflower head (1979): The beads of each layer are spread on Vogel’s sunflower (the golden angle), even but never a grid.

glassfibre opticsorder-independent transparencyweighted blendedcatmull-rominstanced ribbonstextsplashstagedeterministicwgslraw webgpu

Near it in the frame