magic-pixels
    Preparing search index...

    Type Alias DracoWorkerOptions

    Runs KHR_draco_mesh_compression decoding in a pool of Web Workers instead of blocking the main thread, the way three.js's DRACOLoader does. Spawns workers lazily, up to workerLimit, running dist/draco-worker.js - a small bundle of draco-worker.ts that importScripts()s the actual Draco decoder from decoderPath (never bundled by magic-pixels) the first time it is asked to decode.

    type DracoWorkerOptions = {
        decoderPath: string;
        workerLimit?: number;
    }
    Index
    decoderPath: string

    passed to draco-worker.ts's importScripts(), e.g. a Draco CDN URL

    workerLimit?: number

    how many workers to spawn at most, default 4