window.kaolin
    Preparing search index...

    Interface InteractiveFpsOptions

    Constructor options for InteractiveFps.

    interface InteractiveFpsOptions {
        windowMs?: number;
        idleThresholdMs?: number;
        now?: () => number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    windowMs?: number

    Max age (ms) of frame timestamps kept in the sliding window. Defaults to 1000.

    idleThresholdMs?: number

    Gap (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.

    now?: () => number

    Time source; injectable for tests. Defaults to performance.now.