~~servePlacement()~~
Serve placement bakes on this worker: serveScene under its older name (the worker then encodes models too, when asked).
function servePlacement(opts?: ServeSceneOptions): void;Defined in: engine/src/worker/placement.ts:39
Parameters
| Parameter | Type |
|---|---|
opts? | ServeSceneOptions |
Returns
void
Deprecated
Use serveScene.
serveGenerators()
Serve generate requests on this worker until it is terminated. Call after registering the generators this worker should offer: the pool sends a generator id, and a function cannot cross the worker boundary, so the registry must be filled here. Posts a ready message listing the registered ids,...
serveScene()
Serve model encodes and placement bakes on this worker until it is terminated: the worker side of makeSceneWorker. Encodes run the renderer's encodeModel; bakes run a PlacementBaker holding the registered models. Each job is answered with its result, buffers transferred, after progress messages...