Skip to content

Documentation / device / FrameInfo

Interface: FrameInfo ​

Defined in: libs/device/src/base_types.ts:2114

Frame information

Properties ​

frameCounter ​

frameCounter: number

Defined in: libs/device/src/base_types.ts:2116

counter of frames


frameTimestamp ​

frameTimestamp: number

Defined in: libs/device/src/base_types.ts:2118

timestamp of current frame, in milliseconds


elapsedTimeCPU ​

elapsedTimeCPU: number

Defined in: libs/device/src/base_types.ts:2120

time spent by the CPU from last frame, in milliseconds


elapsedTimeGPU ​

elapsedTimeGPU: number

Defined in: libs/device/src/base_types.ts:2125

Time spent by the GPU for the latest resolved frame, in milliseconds. This value is available on WebGPU devices with timestamp-query support and is 0 on WebGL devices.


elapsedFrame ​

elapsedFrame: number

Defined in: libs/device/src/base_types.ts:2127

time spent from last frame, in milliseconds


elapsedOverall ​

elapsedOverall: number

Defined in: libs/device/src/base_types.ts:2129

time spent from the first frame, in milliseconds


FPS ​

FPS: number

Defined in: libs/device/src/base_types.ts:2131

the FPS calculated for the last one second


drawCalls ​

drawCalls: number

Defined in: libs/device/src/base_types.ts:2133

How many draw calls were sent to the GPU in current frame


computeCalls ​

computeCalls: number

Defined in: libs/device/src/base_types.ts:2135

How many compute calls were sent to the GPU in current frame

Released under the MIT License.