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): voidimport { beginCacheFrame } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
cache | PageCache |
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.