ImageCacheStats
What the player's image cache holds, what is pinned, and the budgets in force.
type ImageCacheStats = {
entries: number;
blobBytes: number;
decodedEntries: number;
decodedBytes: number;
pinned: number;
budget: {
blobBytes: number;
decodedBytes: number;
};
};Returned by gameState.getImageCache()?.getStats(). See Cache budgets and memory.
entries- sources for which the cache holds a URLblobBytes- fetched image bytes held by object URLs the cache minteddecodedEntries- sources whose decoded bitmap the cache retainsdecodedBytes- estimated bitmap size, at width × height × 4 bytes eachpinned- entries a mounted image or the current scene prevents from being evictedbudget- the limits currently read fromimageCacheBudgetBytesanddecodedImageBudgetBytes