A class to manage requestAnimationFrame loops.
A map of callback names to an array of performance times in milliseconds.
The maximum time a frame is allowed to take in milliseconds before a warning is logged.
readonly
hasStarted: boolean
readonly
iterationMetrics: { high: number; low: number; avg: number; frametimes: number[]; }
Get the current iteration metrics for the frame loop.
Register a callback to be called on each frame.
Register a callback to be called once on the next frame.
Whether to print frame loop performance metrics to the console.
start: () => unknown
Start the frame loop.
The interval in milliseconds at which to log a summary of the frame loop performance.