Class: TextureGarbageCollector

PIXI. TextureGarbageCollector

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.TextureGarbageCollector(renderer)

Name Type Description
renderer PIXI.WebGLRenderer

The renderer this manager works for.

Methods

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

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.

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