In-game tools · function
occupancy
How full the page cache is, or null where there is no cache to be full.
Explained in In-game tools.
function occupancy(table: ResidencyTable | null): number | nullimport { occupancy } from '@driftengine/tools';Parameters
| Parameter | Type | Description |
|---|---|---|
table | ResidencyTable | null |
In depth
Null rather than zero for a capacity of nothing. A cache that is not there is not an empty cache, and a bar reading 0% would say the streamer had failed rather than that it was absent.