ChunkFillPoolOptions
Options for makeChunkFillPool.
Defined in: engine/src/worker/chunks.ts:166
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
depth? | number | Requests each worker keeps queued (default 2), so it starts the next while the main thread is busy. The pool's capacity is size * depth. | engine/src/worker/chunks.ts:189 |
init | unknown | What each worker builds its fill from, sent once to every worker (and to a replacement for one that died). Structured-cloned, so plain data and typed arrays; a copy per worker. Opaque to the engine: typically the app's terrain description plus its palette base. | engine/src/worker/chunks.ts:179 |
size? | number | Workers to run. Defaults to one per core less one, capped at 4, as for the generator pool (both pools share the machine while a scene loads; size them together). | engine/src/worker/chunks.ts:184 |
spawn | () => Worker | Creates one worker running serveChunks. Only the consumer's bundler can resolve the entry: spawn: () => new Worker(new URL("./ground.worker.ts", import.meta.url), { type: "module" }) | engine/src/worker/chunks.ts:173 |