gameforge - v0.1.12
    Preparing search index...

    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.

    PIXI

    Implements

    Index

    Constructors

    Properties

    checkCount: number

    Frame count since last garbage collection.

    checkCountMax: number

    Frames between two garbage collections.

    PIXI.TextureGCSystem.defaultCheckCountMax

    count: number

    Frame count since started.

    maxIdle: number

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

    PIXI.TextureGCSystem.defaultMaxIdle

    mode: GC_MODES

    Current garbage collection mode.

    PIXI.TextureGCSystem.defaultMode

    defaultCheckCountMax: number

    Default frames between two garbage collections.

    600
    

    PIXI.TextureGCSystem#checkCountMax

    defaultMaxIdle: number

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

    3600
    

    PIXI.TextureGCSystem#maxIdle

    defaultMode: GC_MODES

    Default garbage collection mode.

    PIXI.GC_MODES.AUTO
    

    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

    • 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