Class: TextureGCSystem

PIXI.systems.TextureGCSystem

System plugin to the renderer to manage texture garbage collection on the GPU, ensuring that it does not get clogged up with textures that are no longer being used.

new PIXI.systems.TextureGCSystem (renderer)

Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Extends

Members

checkCount number readonly

Check count

checkCountMax number

Maximum number of itesm to check

See:

count number readonly

Count

maxIdle number

Maximum idle time, in seconds

See:

Current garabage collection mode

See:

The renderer this manager works for.

Methods

contextChange (gl) inherited

Generic method called when there is a WebGL context change.

Name Type Description
gl WebGLRenderingContext

new webgl context

destroy () inherited

Generic destroy methods to be overridden by the subclass

postrender ()

Checks to see when the last time a texture was used if the texture has not been used for a specified amount of time it will be removed from the GPU

Checks to see when the last time a texture was used if the texture has not been used for a specified amount of time it will be removed from the GPU

unload (displayObject)

Removes all the textures within the specified displayObject and its children from the GPU

Name Type Description
displayObject PIXI.DisplayObject

the displayObject to remove the textures from.