updateRate property
Gets the target update rate of the game loop in updates per second (Hz).
Implementation
double get updateRate => _updateRate;
Sets the target update rate of the game loop in updates per second (Hz).
If set to 0 or less, the game will attempt to update as fast as possible, synchronized with the browser's animation frame.
Implementation
set updateRate(double updatesPerSecond) {
_updateRate = updatesPerSecond;
_validateUpdateTimer();
}