makeSceneCacheControls()
SceneCacheControls on any CacheStore. openSceneCacheControls is this on IndexedDB.
function makeSceneCacheControls(store: CacheStore): SceneCacheControls;Defined in: engine/src/worker/scene-cache.ts:342
Parameters
| Parameter | Type |
|---|---|
store | CacheStore |
Returns
makeSceneCache()
The scene cache on any CacheStore: keys are prefixed with salt, maxBytes evicts by last use after each write. openSceneCache is this on IndexedDB.
makeSceneWorker()
Encode models and bake static placements on a worker, main-thread side (the worker runs serveScene). With it, makeInstanceLayer(renderer, { worker }) builds its static set off the main thread (layer.commitAsync()): the main thread only packs the models' bricks to send, claims their pool slots...