50% less intermediate memory
A two-layer composition now needs one RGBA8 target instead of two. At 960 × 540, that saves 2.07 MB. Three or more layers reuse two targets. This excludes source textures, canvas and driver overhead.
SMALL FOOTPRINT / MEASURED IN THE OPEN
Selective imports. Reused video textures. At most two intermediate textures for a composition.
Chrome 156 · Apple M1 Pro · ten image/video runs, 120 sampled frames each. Frame intervals measure browser scheduling, not GPU execution. Results vary by device, resolution and effect.
Measure your deviceREFERENCE RUN / NOVEMBER 9, 2026
Apple M1 Pro, ANGLE Metal, Chrome 156 on macOS. Both sizes run on the same desktop hardware; the narrow render size is not a phone benchmark. One run per scenario, before and after optimization.
| Composition | CSS size / DPR | Frame interval p50 / p95 | CPU submit p95 | First frame |
|---|---|---|---|---|
| Film grain | 960 × 540 / 1 | 8.3 / 9.2 ms | 0.2 ms | 26.1 ms |
| Cinematic · 3 layers | 960 × 540 / 1 | 8.3 / 9.3 ms | 0.2 ms | 27.0 ms |
| Mixed · 6 layers | 960 × 540 / 1 | 8.3 / 9.3 ms | 0.2 ms | 34.3 ms |
| Tilt-shift | 960 × 540 / 1 | 8.3 / 9.3 ms | 0.2 ms | 19.6 ms |
| Video · 3 layers | 960 × 540 / 1 | 8.3 / 9.2 ms | 0.3 ms | 25.4 ms |
| Film grain | 390 × 480 / 1.5 | 8.3 / 9.1 ms | 0.2 ms | 19.5 ms |
| Cinematic · 3 layers | 390 × 480 / 1.5 | 8.3 / 8.9 ms | 0.2 ms | 26.1 ms |
| Mixed · 6 layers | 390 × 480 / 1.5 | 8.3 / 8.9 ms | 0.2 ms | 31.4 ms |
| Tilt-shift | 390 × 480 / 1.5 | 8.3 / 9.0 ms | 0.1 ms | 19.6 ms |
| Video · 3 layers | 390 × 480 / 1.5 | 8.3 / 8.9 ms | 0.3 ms | 18.4 ms |
Each case decodes its source before mounting, warms up for 30 animation frames, then samples 120 requestAnimationFrame intervals. First-frame time includes renderer creation, shader compilation and scheduling, but excludes media download and decode. CPU submission measures JavaScript and WebGL calls, excluding asynchronous GPU work. Timing precision is browser-limited; tiny differences are not evidence of a speedup.
Frame intervals were similar before and after. These short runs do not measure sustained thermal performance, GPU completion, battery use or every device. Keep the tab visible; a visibility interruption invalidates the run. Reduced motion must be disabled to measure animation.
Sizes use esbuild 0.28.2, minified ESM targeting ES2020, tree shaking and gzip level 9. Decimal kB (1,000 bytes); excludes sample media and playground UI. Reproduce with npm ci && npm run measure:size.
Baseline data · Optimized data · Exact bundle sizes · Benchmark source
A two-layer composition now needs one RGBA8 target instead of two. At 960 × 540, that saves 2.07 MB. Three or more layers reuse two targets. This excludes source textures, canvas and driver overhead.
Video textures reuse storage until source dimensions change. Both reference video runs used one source storage allocation. Subsequent uploads update that storage in place.
One active-layer list per draw. No runtime dependencies. Hidden and offscreen canvases stop rendering; the native image or video stays available if WebGL fails.
YOUR DEVICE / YOUR RESULTS
Ten runs at two render sizes. Keep this tab visible. Results stay in this page and are not sent to a server.
Ready
No measurements yet.