new MemoryManager()
Memory management class.
Methods
-
static getCacheSize()
-
Get the cache space size in MB.
-
static getMaxMemory()
-
Get the maximum available memory space in MB.
-
static getMinQuality()
-
Obtain the minimum rendering quality.
-
static setCacheSize()
-
Set the cache space size in MB, default to 0.
-
static setMaxMemory()
-
Set the maximum available memory space in MB.
-
static setMinQuality()
-
Set the minimum rendering quality, which defaults to 1% of the original clarity.
-
static showMemoryInfo()
-
Whether to display memory information in the log, not displayed by default.