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 Fri Jul 09 2021 19:32:27 GMT+0800 (CST)