# QualityApi

interface in `@dioramajs/diorama/quality`

```ts
import type { QualityApi } from '@dioramajs/diorama/quality'
```

The `quality` service.

```ts
interface QualityApi
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `gpu` | `GpuInfo` | The GPU the tier was detected for. |
| `reason` | `ReadonlySignal<QualityReason>` | Why the tier is what it is. |
| `tier` | `ReadonlySignal<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](https://github.com/MasterKurosava/diorama/blob/main/packages/quality/src/index.ts#L28).
