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): number
import { leastRecentlyUsed } from '@driftengine/texture';

Parameters

ParameterTypeDescription
tableResidencyTable
sincenumber
outstring[]
countnumber

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.