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
-
unload(displayObject)
-
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