IFClite TypeScript API
    Preparing search index...

    Interface ChunkDecodeOptions

    How a chunk decode inflates and allocates the meshes' arrays.

    interface ChunkDecodeOptions {
        inflate?: ChunkInflate;
        sharedArena?: boolean;
    }
    Index
    inflate?: ChunkInflate

    Where compressed chunks inflate, e.g. a worker pool on a cache hit (ChunkInflatePool). Default: this thread.

    sharedArena?: boolean

    Copy mesh positions, normals and indices into shared, aligned blocks of up to ~1 MiB (ArrayArena), one allocation per block. Default false: every array owns its buffer. With true, an array is a VIEW into a block other meshes of the chunk share: read it through the view; never transfer or reinterpret its .buffer (that detaches or exposes the other meshes); copy (array.slice()) to hand one mesh's arrays on.