makeModelCacheControls()
ModelCacheControls on any CacheStore. openModelCacheControls is this on IndexedDB.
function makeModelCacheControls(store: CacheStore): ModelCacheControls;Defined in: engine/src/worker/cache.ts:413
Parameters
| Parameter | Type |
|---|---|
store | CacheStore |
Returns
makeModelCache()
The model cache on any CacheStore: keys are prefixed with salt, entries are deflated, and maxBytes evicts by last use after each write. openModelCache is this on IndexedDB. Throws a RangeError on a maxBytes that is not a positive finite number, and warns about doubtful ones...
~~makePlacementWorker()~~
Bake static placements on a worker, main-thread side: makeSceneWorker under its older name, typed as the bake-only PlacementWorker. Give it to makeInstanceLayer(target, { placement }), which bakes there as before; to encode models on it as well, use makeSceneWorker and the layer's worker option.