跳转到内容

trimTextureCache

此内容尚不支持你的语言。

trimTextureCache(): number

Defined in: resourceManager.ts:109

Free every evictable cached texture now (memory pressure). Held textures and the budget are untouched; the warm cache refills as textures are released afterwards. The engine calls this on OS memory warnings — call it yourself before a known memory spike (e.g. a huge one-off allocation). Returns the number of textures freed (0 when uninitialized / mocked).

number