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.
function packEntity(entity: Entity): PackedEntity;Defined in: engine/src/worker/cache.ts:499
Parameters
| Parameter | Type |
|---|---|
entity | Entity |
Returns
openSceneCacheOn()
openSceneCache on a store of your own: deletes the entries of every other salt, then returns makeSceneCache on it.
serveChunks()
Serve chunk fills on this worker until it is terminated: the worker side of makeChunkFillPool. The pool sends init once; make turns it into a ChunkFill; then each request's boxes are filled brick by brick, each brick from empty, and the bricks written come back in one transferred buffer....