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. The second belongs to task T14, which also owns the correction of the opacity that goes with a change of the sample distance. Task T14 supplies its own provider and its own selection.

Parameters​

• context: VolumeStrategyProvisionContext

Returns​

IVolumeRenderStrategy[]

Defined in​

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