Options
All
  • Public
  • Public/Protected
  • All
Menu

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

memberof

PIXI

Hierarchy

  • CountLimiter

Index

Constructors

constructor

  • Parameters

    • maxItemsPerFrame: number

      The maximum number of items that can be prepared each frame.

    Returns CountLimiter

Properties

itemsLeft

itemsLeft: number

maxItemsPerFrame

maxItemsPerFrame: 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