FrameMeasurement
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
TypeScript#
interface FrameMeasurementThe 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: FrameTimesPer frame: the render call alone
drawn#
TypeScript#
drawn: numberFrames 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: numberframe#
TypeScript#
frame: FrameTimesPer frame: the render call and the GPU finishing it
frames#
TypeScript#
frames: numberThe timed frames
framesPerSecond#
TypeScript#
framesPerSecond: number1000 / the median frame time
milliseconds#
TypeScript#
milliseconds: numberThe timed frames together
navigating#
TypeScript#
navigating: booleantriangles#
TypeScript#
triangles: number | nullThe triangles of the visible objects, where the viewer counts them