openSceneCacheOn()
openSceneCache on a store of your own: deletes the entries of every other salt, then returns makeSceneCache on it.
function openSceneCacheOn(
store: CacheStore,
salt: string,
opts?: SceneCacheOptions
): Promise<SceneCache>;Defined in: engine/src/worker/scene-cache.ts:312
Parameters
| Parameter | Type |
|---|---|
store | CacheStore |
salt | string |
opts? | SceneCacheOptions |
Returns
Promise<SceneCache>
openSceneCacheControls()
Open controls for the scene cache in IndexedDB database name (the name given to serveScene({ cache })), or null where there is no IndexedDB. Works from the main thread while the worker uses the cache. As with openModelCacheControls, nothing is cleared or trimmed unless the app asks (apart from...
packEntity()
An entity as a small header plus one byte buffer holding its arrays (PackedEntity): a sparse model's bricks become one key array and one brick array, in the map's order. Copies.