THREE.JS / FOUNDATIONS / SOURCE PROMOTION

Create. Render. Release.

The official memory test deliberately creates a sphere, CanvasTexture, and Lambert material during every animation frame, then disposes the prior resources. This lab makes that ownership boundary observable and adds the source-shaped optional native AO/outline graph.

InitializingPreparing WebGPU

Preparing the dynamic resource lifecycle.

backend
—
graph
—
mesh
—
disposed
—
texture
—
sample
WAITING
Source-shaped controlsnative graph

Start/stop controls the per-frame create → render → dispose cycle; graph rebuild disposes every optional native node first.

Ownership boundarypartial
WebGPURenderernative initialization pending
RenderPipeline / MRT / AO / Outlineoptional native graph
Inspectoropt-in via ?inspector=1

Per-cycle resource disposal is live. Inspector is opt-in; whole-example fidelity remains separate.

Derived from the official WebGPU Memory Test I and its pinned source. Use ?backend=webgl for the explicitly labeled direct-render reference or ?inspector=1 to attach the optional Inspector.

THREE.JS FOUNDATIONS LAB / WEBGPU MEMORY TEST