OptionalwindowMax age (ms) of frame timestamps kept in the sliding window. Defaults to 1000.
OptionalidleGap (ms) between consecutive frames that marks the end of a render burst. Larger than the longest frame you'd expect inside a burst (≈3× frame time is a reasonable floor) but small enough to clearly separate bursts. Defaults to 500.
OptionalnowTime source; injectable for tests. Defaults to performance.now.
OptionaltrackerOptional externally-owned tracker. Pass when the producer of frames sits above the provider in the React tree (e.g. the viewer itself receives the WebSocket messages but wraps only its overlay in the provider). When omitted, the provider lazily creates and owns its own tracker — useful when producer and consumer live inside the same subtree.
OptionalrefreshHow often (ms) the provider polls the underlying tracker and re-renders consumers if the displayed value changed. Decoupled from the actual frame rate so consumers don't re-render per frame. Defaults to 250 ms.
Optionalchildren
Constructor options for InteractiveFps.