magic-pixels
    Preparing search index...

    Type Alias MeshoptWorkerOptions

    Runs EXT_meshopt_compression decoding in a pool of Web Workers instead of the main thread. meshopt's own decode is cheap per call, but a file can carry many compressed bufferViews (one per attribute stream); a pool decodes them concurrently and keeps the main thread free for everything else loading in parallel - other bufferViews, images. Spawns workers lazily, up to workerLimit, running dist/meshopt-worker.js, which import()s the actual decoder module from moduleUrl (never bundled by magic-pixels) the first time it is asked to decode.

    type MeshoptWorkerOptions = {
        moduleUrl: string;
        workerLimit?: number;
    }
    Index
    moduleUrl: string

    passed to meshopt-worker.ts's import(), e.g. meshoptimizer's meshopt_decoder.mjs CDN URL

    workerLimit?: number

    how many workers to spawn at most, default 4