> ## Documentation Index
> Fetch the complete documentation index at: https://demoman.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Frame rate

> Record your app's own motion at 60 frames a second.

Demoman records your app at 30 frames a second. Exports at the default
quality are 60, and the
camera and pointer move at 60, but what your app animates (a card sliding
into a column, a dialog opening, a toast) changes on every other frame. At
60, it is smooth too.

## Set it for a repository

Commit a `.demoman/config.json`:

```json theme={null}
{
  "recordingFrameRate": 60
}
```

It is `30` or `60`, and `30` when it is not set. It is read only from this
file, so every machine and CI record the repository at the same rate.

Any other value stops the run with a sentence naming the file; it is never
read as 30. A file Demoman cannot read at all (not JSON, say) records at 30,
and the run report says so, naming the file and why.

CI has to run this release or later. A workflow written by an older Demoman
pins an older release and ignores the key: it records at 30 without a word. To
update it, run `npx demoman setup --ci` again: it opens one pull request that
replaces the workflow, keeping its trigger and route.

The run report says what each video was recorded at, and where that came
from.

## What it costs

Measured on a 12-second flow:

| Frame rate | Time to record | Disk |
| - | - | - |
| 30 | about 15 s | about 9 MB |
| 60 | about 24 s (up to 30) | about 9 MB |

At 60 a flow records in 1.5 to 2 times as long, on about the same disk. You
pay that on every refresh of every flow, so on CI it is up to twice the
minutes.

## Switching

A refresh after you switch records at the new rate, and counts a different
rate as a change. Every flow recorded in the background (on a held clock) is
replaced on its next refresh, each with the reason: `recorded at 60 fps, the committed video at 30`. Switching
back replaces them again. Phone, tablet and visible-window flows record in
real time, so they stay unchanged.

## When a video is still 30

* **Exports at 30.** Sharing quality is 30 frames a second, and an export
  kept under a size (`maxMB`) may drop to 30. A video recorded at 60 exports correctly; the extra
  frames go unused.
* **A visible window, a phone or a tablet.** These record in real time, at
  the screen's own pace, whatever the setting. The run report says that 60
  was set and not applied.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.