跳到主要内容

flywave-mapview.framestatsarray

Home > @flywave/flywave-mapview > FrameStatsArray

FrameStatsArray class​

Only exported for testing.

Signature:

export declare class FrameStatsArray 

Remarks​

Instead of passing around an array of objects, we store the frame statistics as an object of arrays. This allows convenient computations from ,

Constructors​

Constructor

Modifiers

Description

(constructor)(capacity)

Constructs a new instance of the FrameStatsArray class

Properties​

Property

Modifiers

Type

Description

capacity

readonly

number

frameEntries

readonly

Map<string, RingBuffer<number>>

length

readonly

number

messages

readonly

RingBuffer<string[] | undefined>

Methods​

Method

Modifiers

Description

addFrame(frameStats)

log()

Prints all values to the console.

reset()