Constructor
new FpsCounter(optionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options |
FpsCounterOptions |
<optional> |
Counter options. |
- Source:
Classes
Members
domElement
- Source:
Methods
begin()
Marks the beginning of a frame.
- Source:
end() → {number}
Marks the end of a frame.
- Source:
Returns:
- Latest smoothed FPS value.
- Type
- number
reset()
Resets internal counters and UI.
- Source:
update(deltaTimeSeconds)
Updates the counter using a known delta time.
Parameters:
| Name | Type | Description |
|---|---|---|
deltaTimeSeconds |
number | Time since previous frame in seconds. |
- Source: