Class: MemoryManager

MemoryManager

new MemoryManager()

内存管理类。

Methods

static getCacheSize()

获取缓存空间大小,单位MB。

static getMaxMemory()

获取可用内存的最大空间,单位MB。

static getMinQuality()

获取最低渲染质量。

static setCacheSize()

设置缓存空间大小,单位MB,默认为0。

static setMaxMemory()

设置可用内存的最大空间,单位MB。

static setMinQuality()

设置最低渲染质量,默认是原始清晰度的1%。

static showMemoryInfo()

是否在日志中显示内存信息,默认不显示。