new Regulator(updateFrequency)
Constructs a new regulator.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
updateFrequency |
Number | 0 | The amount of updates per second. |
Members
-
updateFrequency :Number
-
The amount of updates per second.
- Default Value:
- 0
Methods
-
ready() → {Boolean}
-
Returns true if it is time to allow the next update.
Returns:
Boolean -Whether an update is allowed or not.