DriftTexture · function
leastRecentlyUsed
The least recently used resident tiles, oldest first, excluding anything touched since
since.
Explained in DriftTexture.
function leastRecentlyUsed(table: ResidencyTable, since: number, out: string[], count: number): numberimport { leastRecentlyUsed } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
table | ResidencyTable | |
since | number | |
out | string[] | |
count | number |
In depth
The exclusion is the point. A caller passes the clock value from the start of the frame, and everything this frame has sampled is off the table.