DriftTexture · function

beginCacheFrame

Say a new frame has begun, so everything acquired from here is protected from eviction.

Explained in DriftTexture.

function beginCacheFrame(cache: PageCache): void
import { beginCacheFrame } from '@driftengine/texture';

Parameters

ParameterTypeDescription
cachePageCache

In depth

A caller that never calls this gets a cache that protects everything and fills up, which is a visible stall rather than a silent corruption — the right way round for a mistake to fail.