Class twodee.FpsCounter
Counts frames per second.
Defined in: FpsCounter.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Constructs a new FPS counter.
|
| Method Attributes | Method Name and Description |
|---|---|
|
frame()
This method must be called each time a frame is drawn.
|
|
|
getFps()
Returns the number of frames per second.
|
Method Detail
frame()
This method must be called each time a frame is drawn.
{number}
getFps()
Returns the number of frames per second.
- Returns:
- {number} The number of frames per second