Loop

Loop

Creates update loops.

Constructor

new Loop($handler, $scope)

Description:
  • Creates a new update loop.
Source:
Example
const loop = new Loop(handler);
loop.initiate();
Parameters:
Name Type Description
$handler function The handler to execute with the update loop.
$scope Window The global scope to use.

Methods

initiate($tickrateMinimumopt)

Description:
  • Initiates the update loop.
Source:
Parameters:
Name Type Attributes Default Description
$tickrateMinimum number <optional>
60 The minimum acceptable number of ticks per virtual second (in ticks/s).

terminate()

Description:
  • Terminates the update loop.
Source: