PIXI.TimeLimiter
class TimeLimiter
TimeLimiter limits the number of items handled by a PIXI.BasePrepare to a specified number of milliseconds per frame.
Constructor
new PIXI.TimeLimiter(maxMilliseconds: number) → {}
Name | Type | Description |
---|---|---|
maxMilliseconds | number |
The maximum milliseconds that can be spent preparing items each frame. |
Summary
Properties from TimeLimiter
number |
|
number |
The maximum milliseconds that can be spent preparing items each frame. |
Methods from TimeLimiter
boolean |
|
void |
Resets any counting properties to start fresh on a new frame. |
Public Properties
maxMilliseconds: number
The maximum milliseconds that can be spent preparing items 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 |
|
beginFrame() → {void}
Resets any counting properties to start fresh on a new frame.
Type | Description |
---|---|
void |