Class TextureGCSystem

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.

Memberof

PIXI

Implements

Constructors

  • Parameters

    • renderer: Renderer

      The renderer this System works for.

    Returns TextureGCSystem

Properties

checkCount: number

Frame count since last garbage collection.

checkCountMax: number

Frames between two garbage collections.

See

PIXI.TextureGCSystem.defaultCheckCountMax

count: number

Frame count since started.

maxIdle: number

Maximum idle frames before a texture is destroyed by garbage collection.

See

PIXI.TextureGCSystem.defaultMaxIdle

mode: GC_MODES

Current garbage collection mode.

See

PIXI.TextureGCSystem.defaultMode

defaultCheckCountMax: number

Default frames between two garbage collections.

Static

Default

600

See

PIXI.TextureGCSystem#checkCountMax

defaultMaxIdle: number

Default maximum idle frames before a texture is destroyed by garbage collection.

Static

Default

3600

See

PIXI.TextureGCSystem#maxIdle

defaultMode: GC_MODES

Default garbage collection mode.

Static

Default

PIXI.GC_MODES.AUTO

See

PIXI.TextureGCSystem#mode

Methods

  • Generic destroy methods to be overridden by the subclass

    Returns 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 void

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

    Parameters

    Returns void

Generated using TypeDoc