A class that displays the FPS (Frames Per Second) of a given canvas element. It listens for update events from the provided WebaniCanvas instance and calculates the FPS based on the delta time (dt) between frames.
dt
Creates an instance of the WebaniFPSDisplay.
The HTML element where the FPS will be shown.
The WebaniCanvas instance to listen for update events.
The WebaniCanvas instance that provides frame update events.
The HTML element where the FPS will be displayed.
A class that displays the FPS (Frames Per Second) of a given canvas element. It listens for update events from the provided WebaniCanvas instance and calculates the FPS based on the delta time (
dt) between frames.