PIXI.GC_MODES

GC_MODES

The gc modes that are supported by pixi.

The PIXI.settings.GC_MODE Garbage Collection mode for PixiJS textures is AUTO If set to GC_MODE, the renderer will occasionally check textures usage. If they are not used for a specified period of time they will be removed from the GPU. They will of course be uploaded again when they are required. This is a silent behind the scenes process that should ensure that the GPU does not get filled up.

Handy for mobile devices! This property only affects WebGL.

Summary


Properties from GC_MODES

number
static AUTO
number
static MANUAL

Public Properties


AUTO index.ts:420
static AUTO: number

Garbage collection will happen periodically automatically

MANUAL index.ts:420
static MANUAL: number

Garbage collection will need to be called manually


Powered by webdoc!