Drives adaptive-quality switching for one View.

Listens for camera changes on the View; on the first change in a burst it flips view.renderMode to fastMode (default NavigationRender), and once the camera has been still for restMs it flips back to restMode (default RealisticRender).

The mode switch is the only mechanism — this component never touches SAO, shadows, bloom, FXAA, tonemap, edges, IBL or section caps directly. Each of those gates its own activation on view.renderMode, so flipping the View's mode atomically toggles every effect whose renderModes list doesn't include the new mode.

At most one adapter may be live per View — constructing a second against the same View throws. Call AdaptiveQuality.destroy first to re-configure. The adapter also self-destroys when its View is destroyed, so it never outlives it. On destroy the View is restored to restMode.

import {AdaptiveQuality} from "@xeokit/sdk/viewing/adaptiveQuality";

const aq = new AdaptiveQuality({view});
// …
aq.destroy();

Constructors

Properties

Methods

Constructors

Properties

view: View

The View this adapter drives.

Methods