Bytes held by every live geometry — §84's bufferMemory (§83).
bufferMemory
const before = geometryMemoryBytes();const geometry = boxGeometry({ width: 1, height: 1, depth: 1 });geometryMemoryBytes() - before; // === geometry.byteLengthgeometry.dispose();geometryMemoryBytes(); // === before Copy
const before = geometryMemoryBytes();const geometry = boxGeometry({ width: 1, height: 1, depth: 1 });geometryMemoryBytes() - before; // === geometry.byteLengthgeometry.dispose();geometryMemoryBytes(); // === before
Reading it allocates nothing and costs one property read, so a diagnostics overlay may sample it every frame. See the module header for why the value is process-wide, absolute, and never healed by garbage collection.
Bytes held by every live geometry — §84's
bufferMemory(§83).Reading it allocates nothing and costs one property read, so a diagnostics overlay may sample it every frame. See the module header for why the value is process-wide, absolute, and never healed by garbage collection.