Skip to main content

FpsSamplerOptions

Index

Properties

initialFps

initialFps: number

Specify the initial FPS

nowFn

nowFn: () => number

Specify the function used to return the current time (in milliseconds)


Type declaration

    • (): number
    • Specify the function used to return the current time (in milliseconds)


      Returns number

optionalsamplePeriod

samplePeriod?: number

Specify the sampling period in milliseconds (default 100)

Page Options