gameforge - v0.1.12
    Preparing search index...

    Class TimeLimiter

    TimeLimiter limits the number of items handled by a PIXI.BasePrepare to a specified number of milliseconds per frame.

    PIXI

    Index

    Constructors

    • Parameters

      • maxMilliseconds: number

        The maximum milliseconds that can be spent preparing items each frame.

      Returns TimeLimiter

    Properties

    frameStart: number

    The start time of the current frame.

    maxMilliseconds: number

    The maximum milliseconds that can be spent preparing items each frame.

    Methods

    • Checks to see if another item can be uploaded. This should only be called once per item.

      Returns boolean

      • If the item is allowed to be uploaded.
    • Resets any counting properties to start fresh on a new frame.

      Returns void