Skip to content

getResourceStats

getResourceStats(): ResourceStats | null

Defined in: resourceManager.ts:97

Snapshot of GPU resource usage from the C++ ResourceManager — the observability side of the texture budget: watch textureBytes against textureBudget and textureEvictableCount to size the warm cache. Returns null when the resource manager isn’t initialized (or a test mock doesn’t model stats).

ResourceStats | null