In a phone photo-editing app, why can an average frame rate of 58 fps hide the jank users report after a release, and what should the app measure instead?
answer
- averages dilute the frames people feel
- idle screens draw no frames
- count only while something moves
- slow share plus frozen count
- the device's own deadline, by percentile
basics
~10 sAn average dilutes a few long stalls among thousands of on-time frames. Measure, during motion only, the share of frames that missed this device's deadline and any frame long enough to look frozen.
solid answer
~50 sA one-minute session at 60 Hz with four 300 ms stalls still averages about **59 fps**, yet each stall is a visible freeze. The average also moves with idle time: when nothing changes the app draws nothing. Measure frames **only while something moves** — a scroll, a slider drag, an animation — and record the **share of slow frames**, judged against this device's own interval at that moment (8.3 ms at 120 Hz, not a fixed 16 ms), plus the count of **frozen frames** (one platform's line is 700 ms). Treat a screen's first frame separately. Tag each by screen and interaction, and compare the p90 session by device class, refresh rate and version, release against release. A main thread that ignores taps for seconds is a hang, reported with crashes, not a frame metric.
go deeper
Remember that a slow frame missed its refresh deadline and a frozen frame is one so long the app looks stuck, and that an average frame rate hides both.
Explain how to count: frames during motion only, each judged against the device's own interval, with first frames of a screen kept apart.
Show the operational design: per-interaction tags, slow share and frozen count per session, p90 by device class, refresh rate and version, compared release against release.
Decide which interactions a whole app must instrument and which thresholds block a rollout, and own the trade-off between measurement detail and the cost of collecting it.
## Why the average lies An **average frame rate** divides frames drawn by time elapsed. It fails as a smoothness measure in two directions at once. - **It dilutes the frames people feel.** Take a one-minute editing session at 60 Hz in which four slider drags each freeze for 300 ms. The rest of the time runs at 60 fps. Frames drawn: (60 s - 1.2 s) x 60 + 4, about 3,530, so the average is about **59 fps**. Every one of those four freezes was obvious to the user. - **It moves with idle time.** When nothing on the screen changes, a well-behaved app draws nothing, and one platform's displays even lower their refresh rate. A session spent reading a settings page shows a low "frame rate" without any jank at all. So a dashboard showing 58 fps after a release says almost nothing: the release may have added a stall to every drag, or the average may simply reflect what users did. ## What to measure instead | Measure | Definition | Catches | Misses | |---|---|---|---| | Average frame rate | frames / seconds | almost nothing reliably | short stalls; confused by idle time | | Slow-frame share | frames during motion that missed the deadline / all frames during motion | steady jank in scrolling and drags | one rare, very long freeze | | Frozen frames | count of frames longer than a long threshold (one platform: 700 ms) | the "app looks stuck" moments | many slightly slow frames | | Stall time per second of motion | milliseconds of lateness / seconds of animation | severity, not just count | nothing new if the other two are kept | The last row is how one platform reports interrupted motion: milliseconds of delay per second of animation, which it rates as good at or below 10 ms/s and as needing immediate attention above 50 ms/s. The thresholds are that platform's; the idea — weight each late frame by how late it was — is portable. ## Measure during motion, against the right deadline - Count frames **only while something moves**: scrolling, dragging, an animation. Idle time is not smoothness. - Judge each frame against **this device's interval at that moment**: about 8.3 ms on a 120 Hz screen, about 16.7 ms at 60 Hz. A fixed 16 ms threshold hides half the jank on fast displays. - Keep **a screen's first frame** apart. It has to build and lay out everything from scratch; one platform calls it normal for that frame to exceed 16 ms, which is why it tracks frozen frames separately from slow rendering. - **Tag** every measurement with the screen and the interaction — "slider drag on the editor", "scroll of the layers panel" — so a regression points at a place in the code. ## Slice it, and read percentiles 1. Per session, compute the slow-frame share and the frozen count for each tagged interaction. 2. Across sessions, read the **median and the 90th percentile**, not the mean; jank concentrates in a tail of sessions on weaker phones. 3. Slice by **device class, refresh rate and app version**. A 120 Hz flagship and a 60 Hz budget phone fail for different reasons. 4. Compare the new version against the previous one at the same stage of rollout, so the comparison holds the population steady. The thresholds that count as "bad" — say 5% of drag frames slow — are the team's own assumptions, set from the baseline it measures; the source documentation gives no universal number. ## Where this metric stops - An app whose main thread does not respond to a tap for seconds has a **hang**, not a slow frame. One platform's tools start reporting unresponsiveness at 250 ms; the other treats no response to input within five seconds as the app not responding. Those are captured and triaged with crash reports. - Getting these numbers from phones to a server — buffering, batching, sampling — is the analytics pipeline's job; this question is about what the numbers should mean. - Finding *why* a frame was slow is profiling, done with each platform's and each framework's own tools on a real device. The design point is that the app decides, before shipping, which interactions it measures and against which deadline, so that "editing feels janky" becomes a number per screen, per device class and per release.
- Why slice the slow-frame share by refresh rate and device class instead of reporting one fleet-wide figure?The same code fails differently: a 120 Hz phone gives 8.3 ms per frame, a 60 Hz budget phone gives 16.7 ms on a slower CPU. A fleet-wide figure lets a large population of healthy devices hide a regression that only one class suffers, and it moves whenever the device mix changes, even when the code did not.
- How is a frozen frame different from a hang in the same app?A frozen frame is motion that stops for a long moment — one platform's line is 700 ms — while the app still eventually renders. A hang is the main thread failing to respond to a discrete input such as a tap for an extended time; one platform's tools start reporting at 250 ms, and the other flags no response within five seconds. Hangs are triaged alongside crashes.
- A 58 fps session average proves that users see smooth motion
- Every phone's slow-frame threshold is 16 ms, whatever its display
- An idle screen that draws no frames is dropping frames
- The mean across all users is enough; percentiles are unnecessary
- A screen's first frame should be held to the scrolling deadline