Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

QualityOptions interface

Options of the `quality` plugin.

View as Markdown
import type { QualityOptions } from '@dioramajs/diorama/quality'
interface QualityOptions

Members

NameTypeDescription
readonly adaptboolean

Lower the tier when the browser misses frames while the site draws. Default true.

readonly pixelRatioReadonly<Record<QualityTier, number>>

Pixel ratio bound per tier. Default { low: 1, medium: 1.5, high: Infinity }.

readonly rememberboolean

Keep the settled tier for the rest of the session (sessionStorage, keyed by GPU). Default true.

readonly tier'auto' | QualityTier

'auto' (default) detects and adapts. A tier pins it.

Also exported from @dioramajs/quality.

Defined in packages/quality/src/index.ts.