Options
All
  • Public
  • Public/Protected
  • All
Menu

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

memberof

PIXI

Hierarchy

  • TimeLimiter

Index

Constructors

constructor

  • new TimeLimiter(maxMilliseconds: number): TimeLimiter
  • Parameters

    • maxMilliseconds: number

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

    Returns TimeLimiter

Properties

frameStart

frameStart: number

maxMilliseconds

maxMilliseconds: number

Methods

allowedToUpload

  • allowedToUpload(): boolean
  • 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.

beginFrame

  • beginFrame(): void
  • Resets any counting properties to start fresh on a new frame.

    Returns void

Generated using TypeDoc