IFClite TypeScript API
    Preparing search index...

    Function prewarmGeometryWorkers

    • Fill the pool with the workers a parallel load of fileSizeMB will use (its geometry workers plus the pre-pass worker), each with the engine instantiated from the shared compiled module. Call it as soon as a load is requested, so the spawn overlaps the file read. Resolves to the number of workers started (0 when the pool is off, already holds them, or the module could not be compiled: the load then spawns as before).

      Parameters

      • Optionaloptions: { fileSizeMB?: number; wasmUrl?: string; workerCountOverride?: number }

      Returns Promise<number>