THREE.JS / FOUNDATIONS 168
Dispose with intent.
The scene replaces one textured sphere repeatedly. Watch the resource counts while creation, rendering, removal, disposal, and renderer shutdown stay explicit.
Preparing the renderer and baseline scene…
resource churn
One replacement, one release.
The official test disposes the previous sphere before the next one is rendered. A low memory count is not a performance guarantee; it is a resource-ownership observation.
statebase
created0
disposed0
live transient0
frame draws—
cycles0
renderer.info.memory
- geometries
- —
- attributes
- —
- textures
- —
- baseline delta
- —
01create geometry + map
02remove, then dispose owned resources
03renderer.dispose() on release
Lifecycle initialization failed.
The renderer could not start.
Drag to orbit · press R to reset · add ?forceWebGL=1 to compare
LAB 168 / MEMORY LIFECYCLE