Documentation
    Preparing search index...

    Function geometryMemoryBytes

    • Bytes held by every live geometry — §84's bufferMemory (§83).

      const before = geometryMemoryBytes();
      const geometry = boxGeometry({ width: 1, height: 1, depth: 1 });
      geometryMemoryBytes() - before; // === geometry.byteLength
      geometry.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.

      Returns number