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) → {}
Parameters:
Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Summary


Properties from TextureGCSystem

number
checkCount
number
checkCountMax
number
count
number
maxIdle
PIXI.GC_MODES
mode

Methods from TextureGCSystem

Public Properties


checkCount TextureGCSystem.ts:28
checkCount: number

Check count

checkCountMax TextureGCSystem.ts:40
checkCountMax: number

Maximum number of item to check

See: PIXI.settings.GC_MAX_CHECK_COUNT
count TextureGCSystem.ts:22
count: number

Count

maxIdle TextureGCSystem.ts:34
maxIdle: number

Maximum idle time, in seconds

See: PIXI.settings.GC_MAX_IDLE
mode TextureGCSystem.ts:46
mode: PIXI.GC_MODES

Current garbage collection mode

See: PIXI.settings.GC_MODE

Public Methods


run TextureGCSystem.ts:93
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

Returns:
Type Description
void
unload TextureGCSystem.ts:132
unload(displayObject: PIXI.DisplayObject) → {void}

Removes all the textures within the specified displayObject and its children from the GPU

Parameters:
Name Type Description
displayObject PIXI.DisplayObject

the displayObject to remove the textures from.

Returns:
Type Description
void

Protected Methods


postrender TextureGCSystem.ts:65
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

Returns:
Type Description
void

Powered by webdoc!