@pmndrs/bvh
    Preparing search index...

    Interface TinyBvhBuilderOptions

    interface TinyBvhBuilderOptions {
        formatsInWasm?: boolean;
        releaseAboveBytes?: number;
    }
    Index
    formatsInWasm?: boolean

    Default true: buildLayout's triangleLeaves: 'indexed' and nodeFormat: 'quantized' are written inside the WASM when it can (tbvh_write_layout_as). False: the WASM writes records and 64-byte nodes and JavaScript converts them, the path before; the same bytes, kept for comparisons and as the path for an older .wasm.

    releaseAboveBytes?: number

    After a build that leaves the WASM memory larger than this many bytes, the builder replaces its WASM instance with a fresh one (64 MiB), so the grown memory is garbage once nothing else holds it (every result is copied out of it). Default TINYBVH_RELEASE_ABOVE_BYTES, 256 MiB: one build of about a million triangles or more. The next build pays a synchronous instantiation of the compiled module (well under a millisecond for its 130 KB). Infinity keeps one instance for the builder's life, as before.