useInterval

Invoke a callback function on an interval.
Source:
Parameters:
Name Type Description
fps number The number of times per second to invoke the function.
onUpdate function The function to invoke.