PIXI.CountLimiter
class CountLimiter
CountLimiter limits the number of items handled by a PIXI.BasePrepare to a specified number of items per frame.
Constructor
new PIXI.CountLimiter(maxItemsPerFrame: number) → {}
Name | Type | Description |
---|---|---|
maxItemsPerFrame | number |
The maximum number of items that can be prepared each frame. |
Summary
Properties from CountLimiter
number |
The number of items that can be prepared in the current frame. |
number |
The maximum number of items that can be prepared each frame. |
Methods from CountLimiter
boolean |
|
void |
Resets any counting properties to start fresh on a new frame. |
Public Properties
itemsLeft: number
The number of items that can be prepared in the current frame.
maxItemsPerFrame: number
The maximum number of items that can be prepared each frame.
Public Methods
allowedToUpload() → {boolean}
Checks to see if another item can be uploaded. This should only be called once per item.
Type | Description |
---|---|
boolean |
If the item is allowed to be uploaded. |
beginFrame() → {void}
Resets any counting properties to start fresh on a new frame.
Type | Description |
---|---|
void |