pixi-reels

API reference

SpinMetricsOptions

pixi-reels


pixi-reels / debug / SpinMetricsOptions

Defined in: debug/SpinMetrics.ts:114

Properties#

PropertyTypeDescriptionDefined in
history?numberRounds kept; the oldest drops. Default 20.debug/SpinMetrics.ts:118
now?() => numberClock, in ms. Defaults to performance.now(). Tests pass a fake one.debug/SpinMetrics.ts:116
sampleMs?numberMinimum ms between two speed samples. Default 33 (about 30 Hz).debug/SpinMetrics.ts:125
ticker?TickerTicker 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