Methods
getFps(reset)
Get the average frames per second during the current collection period
Parameters:
Name | Type | Description |
---|---|---|
reset |
Boolean | Reset stats for this period |
recordFrame()
Record a render frame
resetFps()
Reset stats for the current collection period
startFpsInterval(intervalSecs, label, log)
Start an interval that records stats periodically
Parameters:
Name | Type | Description |
---|---|---|
intervalSecs |
Number | Seconds between stat computatino |
label |
String | String to print as part of console log |
log |
Boolean | Set true if stats should print out to console |
stopFpsInterval()
Stop any existing stats periodic