Class: CountLimiter

PIXI. CountLimiter

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

new PIXI.CountLimiter(maxItemsPerFrame)

Name Type Description
maxItemsPerFrame number

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

Methods

allowedToUpload(){boolean}

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

Returns:
Type Description
boolean If the item is allowed to be uploaded.

Resets any counting properties to start fresh on a new frame.