Class: TextureGCSystem

PIXI.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.TextureGCSystem (renderer) overrides

Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Extends

Members

checkCount number

Check count

checkCountMax number

Maximum number of item to check

See:

count number

Count

maxIdle number

Maximum idle time, in seconds

See:

Current garabage collection mode

See:

Methods

postrender () void

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) void

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.

Inherited Properties

From class PIXI.System

The renderer this manager works for.

Inherited Methods

From class PIXI.System

destroy () void inherited

Generic destroy methods to be overridden by the subclass