Reference·JavaScript · @bimworks/viewer3dJavaScript

FrameMeasurement

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface FrameMeasurement

The outcome of Viewer3d.measureFrames

Members#

Member Kind Description
canvas Property The drawing buffer, in pixels
cpu Property Per frame: the render call alone
drawn Property Frames the viewer drew, of the expected render calls (warm-up included): fewer means frames were skipped, and the times are not of the scene
engine Property
expected Property
frame Property Per frame: the render call and the GPU finishing it
frames Property The timed frames
framesPerSecond Property 1000 / the median frame time
milliseconds Property The timed frames together
navigating Property
triangles Property The triangles of the visible objects, where the viewer counts them

canvas#

TypeScript#
canvas: [number, number]

The drawing buffer, in pixels

cpu#

TypeScript#
cpu: FrameTimes

Per frame: the render call alone

drawn#

TypeScript#
drawn: number

Frames the viewer drew, of the expected render calls (warm-up included): fewer means frames were skipped, and the times are not of the scene

engine#

TypeScript#
engine: "webgl" | "webgpu"

expected#

TypeScript#
expected: number

frame#

TypeScript#
frame: FrameTimes

Per frame: the render call and the GPU finishing it

frames#

TypeScript#
frames: number

The timed frames

framesPerSecond#

TypeScript#
framesPerSecond: number

1000 / the median frame time

milliseconds#

TypeScript#
milliseconds: number

The timed frames together

navigating#

TypeScript#
navigating: boolean

triangles#

TypeScript#
triangles: number | null

The triangles of the visible objects, where the viewer counts them