@novorender/api / getDeviceProfile
Function: getDeviceProfile()
function getDeviceProfile(tier, resolutionScaling?): DeviceProfile;
Defined in: @novorender/src/web_app/device.ts:27
Create a device profile.
Parameters
Parameter | Type | Description |
---|---|---|
tier | GPUTier | The performance level of device GPU, 0-3, where 0 is weakest. |
resolutionScaling? | number | An optional scale factor to apply to output image resolution. |
Returns
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.