Name | Type | Description |
---|---|---|
renderer |
Renderer |
The renderer this System works for. |
Implements
Members
defaultOptions TextureGCSystemOptions static
default options for the TextureGCSystem
Properties:
Name | Type | Default | Description |
---|---|---|---|
textureGCActive |
boolean |
true
|
If set to true, this will enable the garbage collector on the GPU. |
textureGCAMaxIdle |
60 * 60
|
The maximum idle frames before a texture is destroyed by garbage collection. |
|
textureGCCheckCountMax |
number |
600
|
Frames between two garbage collections. |
Current garbage collection mode.
- See:
-
- TextureGCSystem.defaultMode
Frame count since last garbage collection.
Frames between two garbage collections.
- See:
-
- TextureGCSystem.defaultCheckCountMax
Frame count since started.
Maximum idle frames before a texture is destroyed by garbage collection.
- See:
-
- TextureGCSystem.defaultMaxIdle
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.
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.