Skip to main content

Interface: AssetTrack

Defined in: runtime/precompisition.ts:18

A single asset's position on the global frame timeline together with the load/evict windows the asset manager uses to keep memory bounded.

Properties

cacheAt

cacheAt: number

Defined in: runtime/precompisition.ts:24

Frame at which loading should begin. Always <= startFrame. Derived from decoded memory footprint: larger assets get earlier lead time.


discardAt

discardAt: number | null

Defined in: runtime/precompisition.ts:29

Frame at which the asset may be evicted under memory pressure, or null if it should never be evicted (e.g. fonts). Always >= endFrame when set.


record

record: AssetRecord

Defined in: runtime/precompisition.ts:19