new FPSCounter(numFrames)
Parameters:
Name | Type | Description |
---|---|---|
numFrames |
The amount of frames to average. |
Members
-
averageFPS
-
Returns the running average fps.
-
lastFrameFPS
-
Returns the last frame's fps.
-
maxFPS
-
Returns the maximum fps since last reset.
-
minFPS
-
Returns the minimum fps since last reset.
Methods
-
reset()
-
Resets minimum and maximum fps stats.
-
update(dt)
-
Updates the counter with a new frame time
Parameters:
Name Type Description dt
The time in milliseconds since the last frame