@novorender/web_app / getDeviceProfile
Function: getDeviceProfile()
function getDeviceProfile(tier, resolutionScaling?): DeviceProfile
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.