Skip to main content

@novorender/api / DeviceLimits

Interface: DeviceLimits

Defined in: @novorender/src/core3d/device.ts:94

Device hardware limitations.

Remarks​

Note that these limitations should reflect the effective limitations of the browser hosting web app, with room for UI and other app related resources.

Properties​

maxGPUBytes​

readonly maxGPUBytes: number;

Defined in: @novorender/src/core3d/device.ts:96

Max. # bytes allowed for GPU resources, such as buffers and textures.


maxPrimitives​

readonly maxPrimitives: number;

Defined in: @novorender/src/core3d/device.ts:98

Max. render primitives (points, lines and triangles) allowed for each frame.


maxSamples​

readonly maxSamples: number;

Defined in: @novorender/src/core3d/device.ts:107

Max. # of multisample anti aliasing MSAA.

Remarks​

Should be an integer number, generally between 2 and 16. Higher numbers will give better anti aliasing at the expense of slower rendering and more memory usage. 4 is a reasonable value for most devices. 8 works well on powerful discrete GPUs, such as Nvidia. If this value exceeds the max # samples allowed on this device, the driver will cap it to the lower number.