Class: TextureGCSystem

PIXI.systems.TextureGCSystem

TextureGarbageCollector. This class manages the GPU and ensures 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

The renderer this manager works for.

Methods

contextChange () inherited

Generic method called when there is a WebGL context change.

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.