Functions & Hooks

setImageCacheLimit

function setImageCacheLimit(bytes: number): void;

Byte budget for decoded images. A decoded image is resident twice - as CPU pixels and as the GPU texture uploaded from them - so this is applied to both the pixel cache and the tgfx context's resource cache. Defaults to 64 MB.

Parameters

bytes

number

Returns

void

On this page