Skip to main content

@novorender/web_app / getDeviceProfile

Function: getDeviceProfile()

function getDeviceProfile(tier, resolutionScaling?): DeviceProfile

Create a device profile.

Parameters

ParameterTypeDescription
tierGPUTierThe performance level of device GPU, 0-3, where 0 is weakest.
resolutionScaling?numberAn optional scale factor to apply to output image resolution.

Returns

DeviceProfile

A DeviceProfile reflecting the typical capabilities of a GPU at given tier level.

Remarks

A simple tier system is probably too simplistic but provides a starting point. The resulting device profile may be modified further before passing it into the View constructor.

Defined in

@novorender/web_app/device.ts:28