Skip to main content

Function: defaultVolumeStrategyProvider()

defaultVolumeStrategyProvider(context): IVolumeRenderStrategy[]

The default provider, and the only one that this version ships.

It builds the full-resolution strategy when the device can hold it, and the reduced-resolution strategy otherwise. It reads the capability alone.

It implements no performance-bound reduction. "The texture is too large" and "the frame rate is too low" are different causes with different timing: a capability does not change while a viewport lives, and a frame rate changes inside one interaction. A provider for the frame rate, with the correction of the opacity that goes with a change of the sample distance, is separate work.

Parameters​

• context: VolumeStrategyProvisionContext

Returns​

IVolumeRenderStrategy[]

Defined in​

packages/core/src/RenderingEngine/helpers/volumeRenderStrategy.ts:600