pixi.js
    Preparing search index...

    Class TextureGCSystemAdvanced

    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.

    Implements

    Index

    Constructors

    Properties

    active: boolean

    Current garbage collection mode.

    TextureGCSystem.defaultMode

    checkCount: number

    Frame count since last garbage collection.

    checkCountMax: number

    Frames between two garbage collections.

    TextureGCSystem.defaultCheckCountMax

    count: number

    Frame count since started.

    maxIdle: number

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

    TextureGCSystem.defaultMaxIdle

    defaultOptions: TextureGCSystemOptions = ...

    default options for the TextureGCSystem

    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