five-on-it / apps/client/src/renderer/frame-stats / FrameStats
Class: FrameStats
Defined in: apps/client/src/renderer/frame-stats.ts:43
Collects frames into one-second windows; the last full window is what it reports.
Constructors
Constructor
new FrameStats():
FrameStats
Returns
FrameStats
Properties
scene
scene:
SceneCounters
Defined in: apps/client/src/renderer/frame-stats.ts:51
The latest scene counters.
Accessors
report
Get Signature
get report():
FrameReport
Defined in: apps/client/src/renderer/frame-stats.ts:72
The last full second and the latest scene counters.
Returns
Methods
record()
record(
now,workMs,ticks):void
Defined in: apps/client/src/renderer/frame-stats.ts:54
Records a frame that ended at now (ms), its work time (ms) and the ticks it ran.
Parameters
now
number
workMs
number
ticks
number
Returns
void