Skip to main content

function.getDeviceProfile

API > getDeviceProfile

Function: getDeviceProfile

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.

Source

@novorender/web_app/device.ts:28

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.