Class: TextureGarbageCollector

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

Name Type Description
renderer Tiny.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 Tiny.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

Documentation generated by JSDoc 3.4.3 on Mon Dec 03 2018 17:48:52 GMT+0800 (CST)