API reference
SpinMetricsOptions
pixi-reels
pixi-reels / debug / SpinMetricsOptions
Defined in: debug/SpinMetrics.ts:114
Properties#
| Property | Type | Description | Defined in |
|---|
history? | number | Rounds kept; the oldest drops. Default 20. | debug/SpinMetrics.ts:118 |
now? | () => number | Clock, in ms. Defaults to performance.now(). Tests pass a fake one. | debug/SpinMetrics.ts:116 |
sampleMs? | number | Minimum ms between two speed samples. Default 33 (about 30 Hz). | debug/SpinMetrics.ts:125 |
ticker? | Ticker | Ticker to sample each reel’s speedNormalized on. Without one, rounds carry no speed trace, which is all the events alone can tell. | debug/SpinMetrics.ts:123 |