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 item 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

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.