PIXI.TextureGCSystem
class TextureGCSystem implements PIXI.ISystem
System plugin to the renderer to manage texture garbage collection on the GPU, ensuring that it does not get clogged up with textures that are no longer being used.
Constructor
new PIXI.TextureGCSystem(renderer: PIXI.Renderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
The renderer this System works for. |
Summary
Properties from TextureGCSystem
number |
|
number |
|
number |
|
number |
|
PIXI.GC_MODES |
|
Methods from TextureGCSystem
void |
|
void |
|
void |
|
Public Properties
checkCountMax: number
Maximum number of item to check
maxIdle: number
Maximum idle time, in seconds
mode: PIXI.GC_MODES
Current garbage collection mode
Public Methods
run() → {void}
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
Type | Description |
---|---|
void |
unload(displayObject: PIXI.DisplayObject) → {void}
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. |
Type | Description |
---|---|
void |
Protected Methods
protected postrender() → {void}
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
Type | Description |
---|---|
void |