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

QualityApi interface

The `quality` service.

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

Members

NameTypeDescription
readonly gpuGpuInfo

The GPU the tier was detected for.

readonly reasonReadonlySignal<QualityReason>

Why the tier is what it is.

readonly tierReadonlySignal<QualityTier>

The tier now. Effects read it as ctx.quality and through their caps.

set
set(tier: 'auto' | QualityTier): void

Pins a tier, or 'auto' to detect and adapt again.

stats
stats(): { readonly refresh: number; readonly slowShare: number; readonly steps: number }

Counters for tests and devtools.

Also exported from @dioramajs/quality.

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