Skip to main content

@novorender/api / RenderStatistics

Interface: RenderStatistics

Defined in: @novorender/src/core3d/context.ts:1766

Render frame performance and resource usage statistics.

Properties

bufferBytes

readonly bufferBytes: number;

Defined in: @novorender/src/core3d/context.ts:1768

Estimated # bytes used by WebGL buffers for this frame.


cpuTime

readonly cpuTime: object;

Defined in: @novorender/src/core3d/context.ts:1782

Time spent in the main thread.

draw

readonly draw: number;

CPU milliseconds spent rendering.


drawCalls

readonly drawCalls: number;

Defined in: @novorender/src/core3d/context.ts:1778

of draw calls in this frame.


frameInterval

readonly frameInterval: number;

Defined in: @novorender/src/core3d/context.ts:1792

Effective interval in milliseconds since last frame was drawn.


gpuTime

readonly gpuTime: object;

Defined in: @novorender/src/core3d/context.ts:1787

Time spent in the GPU.

draw

readonly draw: undefined | number;

GPU milliseconds spent rendering, if supported by driver.


lines

readonly lines: number;

Defined in: @novorender/src/core3d/context.ts:1774

of lines drawn in this frame.


points

readonly points: number;

Defined in: @novorender/src/core3d/context.ts:1772

of points drawn in this frame.


primitives

readonly primitives: number;

Defined in: @novorender/src/core3d/context.ts:1780

of primitives (points+lines+triangles) drawn by static geometry for this frame.


textureBytes

readonly textureBytes: number;

Defined in: @novorender/src/core3d/context.ts:1770

Estimated # bytes uses by WebGL textures for this frame.


triangles

readonly triangles: number;

Defined in: @novorender/src/core3d/context.ts:1776

of triangles drawn in this frame.