ClassDebugger & Diagnostics@public
FlxFpsDisplay
Small dependency-free DOM display for render FPS and frame pacing.
ts
export declare class FlxFpsDisplayConstructors
ts
constructor(options?: FlxFpsDisplayOptions)Constructs a new instance of the FlxFpsDisplay class
| Parameter | Type | Description |
|---|---|---|
options | FlxFpsDisplayOptions | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
fps | readonly | number | - |
metrics | readonly | FlxFpsMetrics | Metrics from the most recently completed sampling window. |
Methods
destroy()
ts
destroy(): voidReturns: void
recordFrame()
ts
recordFrame(elapsedMS: number, simulationSteps?: number): voidRecord one completed render and the fixed updates executed before it.
Parameters:
| Parameter | Type | Description |
|---|---|---|
elapsedMS | number | - |
simulationSteps | number | - |
Returns: void
reset()
ts
reset(): voidClear collected samples, such as after returning from a background tab.
Returns: void