跳转到内容

WorldStreamer

此内容尚不支持你的语言。

Defined in: residency/WorldStreamer.ts:156

new WorldStreamer(host): WorldStreamer

Defined in: residency/WorldStreamer.ts:172

WorldStreamHost

WorldStreamer

get manifest(): WorldManifest | null

Defined in: residency/WorldStreamer.ts:199

WorldManifest | null

clear(): void

Defined in: residency/WorldStreamer.ts:309

Everything goes; the cells stay registered. For a world being torn down.

void


delivery(): Record<string, CellDelivery>

Defined in: residency/WorldStreamer.ts:250

Per cell: where its last delivery spent its time.

Per CELL and not a running average, because the question prefetch answers is asked one arrival at a time: a mean over hits and misses together describes no arrival that happened.

Record<string, CellDelivery>


loadManifest(manifest, sceneConfig?): void

Defined in: residency/WorldStreamer.ts:183

Adopt a cooked world: its cells become loadable scenes and residency answers for them.

Registered here, not beside the game’s own scenes: a cell is content residency brings in, and switchTo('cell_3_2') is a second author.

WorldManifest

(cell) => SceneConfig

void


recordPhase(name, phase, ms): void

Defined in: residency/WorldStreamer.ts:238

Where a cell’s load spent its time.

Most of a load runs BETWEEN frames — off every system timer there is — so a profiler watching the frame loop sees the cost and cannot name it.

string

string

number

void


renderReadinessOf(name): RenderReadinessStamp | null

Defined in: residency/WorldStreamer.ts:216

The render-program claim a cell holds, or null when it holds none.

A cell on a host with no renderer holds NONE — the obligation did not apply, which is a different fact from a claim that succeeded and must stay distinguishable from one. Publication reads this to re-check freshness.

string

RenderReadinessStamp | null


residencyOf(name): CellResidency

Defined in: residency/WorldStreamer.ts:203

string

CellResidency


restampsOf(name): number

Defined in: residency/WorldStreamer.ts:228

How often publication found this cell’s claim stale and made a new one.

Zero across a dwell where nothing moved: readying again for content that did not change is the cost prefetching exists to avoid paying twice.

string

number


status(): WorldStreamerStatus

Defined in: residency/WorldStreamer.ts:316

WorldStreamerStatus


update(sources): void

Defined in: residency/WorldStreamer.ts:274

Reconcile residency against where the sources are.

The sources arrive as a list and are unioned, never folded: a fold gives the last one written the whole answer, and then a second camera deletes the world the first is standing in.

readonly ResidencySource[]

void