Functions & Hooks

purgeCaches

function purgeCaches(): void;

Drop every tgfx cache now. Decoded CPU pixels are freed before this returns; each live canvas drops its GPU resource cache on its next frame, which this schedules - so process memory falls within a frame, without waiting for any budget eviction. What is still on screen re-decodes and re-uploads lazily.

Returns

void

On this page