Skip to content

ecsia-monorepo / devtools/src / FrameDelta

Interface: FrameDelta

Defined in: devtools/src/types.ts:65

One frame's deltas vs the previous observed frame (watch ).

Properties

frame

ts
readonly frame: number;

Defined in: devtools/src/types.ts:67

0-based frame index since watch start.


spawned

ts
readonly spawned: number;

Defined in: devtools/src/types.ts:70

Entities spawned since the previous sample — real lifecycle (handleStats totals diff), not component churn: add() on a living entity contributes 0; a bare spawn() contributes 1.


despawned

ts
readonly despawned: number;

Defined in: devtools/src/types.ts:72

Entities despawned since the previous sample (same lifecycle source).


aliveDelta

ts
readonly aliveDelta: number;

Defined in: devtools/src/types.ts:74

Net alive change; always equals spawned − despawned.


archetypesCreated

ts
readonly archetypesCreated: number;

Defined in: devtools/src/types.ts:76

Archetypes created since the previous sample (archetype churn).


changedComponents

ts
readonly changedComponents: Readonly<Record<string, number>>;

Defined in: devtools/src/types.ts:78

Components whose .changed write-log fired this frame, keyed by component name → count.


changedTotal

ts
readonly changedTotal: number;

Defined in: devtools/src/types.ts:80

Total change-tracked writes observed this frame.

MIT licensed · 0.x, unpublished, experimental.