Skip to content
Illustrative timing diagram comparing intervals of 16.7, 25 and 33.3 ms at a fixed 120 Hz.

33 ms: why we measure frame gaps

An fps average can look fine while callback gaps vary. That’s why we check the gaps as well.

Samrat Chowdhury, founder of MootionblueSamrat Chowdhury5 min read

An average fps counter can hide uneven timing, so we now inspect callback gaps as well as the average.

For reference: evenly paced 60 fps is a frame about every 16.7 ms, which spans two refreshes of about 8.33 ms on a fixed 120 Hz display. Our test display also supports variable refresh, so these are reference intervals, not measured screen holds.13

Reference intervals for evenly paced 60 fps on a fixed 120 Hz display; no universal visibility threshold is established.

Reference timing diagram: 16.7, 25 and 33.3 ms span two, three and four refresh intervals at a fixed 120 Hz.
Reference intervals on a fixed 120 Hz display.

Averages hide the frames you notice

A counter tells you how many frames landed in a second. It can’t tell you whether one of them sat on screen for a tenth of a second.1

In older candidate 8.1 staging runs, our 473-layer film had a median rolling acknowledgement rate of 34.757 fps, and its longest capture-stream callback gap across three plays was 241.7 ms.2

Those are two different callback signals; neither measures how long a frame stayed on the physical screen.2

The three lines

Reference intervalRefreshes at 120 HzAt a fixed 120 Hz
16.7 ms2on time
25 ms3one extra refresh interval
33.3 ms or more4+two or more extra refresh intervals

At a fixed 120 Hz, one extra refresh adds about 8.33 ms and two add about 16.67 ms. Whether a gap is noticeable depends on the motion, display and viewer, so these lines are engineering targets, not guarantees about perception.1

Measure every gap

I now inspect frame acknowledgements as well as averages. For a simpler main-thread diagnostic, this loop records gaps between animation callbacks. It does not measure video-frame delivery:1

Illustrative only. requestAnimationFrame callbacks run before rendering updates. Their timestamp gaps are neither video-frame gaps nor physical display holds.

frame-gaps.js
// Illustrative main-thread callback diagnostic, not screen timing.
let last;
let over25 = 0, over33 = 0;
function tick(now) {
  if (document.hidden) {
    last = undefined;
  } else {
    if (last !== undefined) {
      const gap = now - last;
      if (gap > 25) over25++;
      if (gap > 33) over33++;
    }
    last = now;
  }
  requestAnimationFrame(tick);
}
document.addEventListener("visibilitychange", () => { last = undefined; });
requestAnimationFrame(tick);
Illustrative animation-callback timing.

Our playback harness notes when the main thread receives each “frame shown” message from the worker, and checks the gaps between them. Its provisional guard is 29 ms, plus frame-count and source-order checks.3

That doesn’t bound the delay to the physical screen: our screen-capture and compositor-trace meters failed their controls, so screen timing remains unvalidated.3

How easing changes velocity

Smooth motion can move at a constant speed or ease in and out. Scrub the curve below to compare an eased, changing velocity with a straight line. The demo doesn’t simulate dropped frames or measure what a viewer notices.5

Illustrative easing curve in green; linear interpolation is dashed. The shown keys include a hold, so the linear path stops abruptly at that hold. The readout gives time, normalized value and approximate velocity in normalized units per second.

Interactive easing-curve illustration.

Early numbers

Full seconds had 60 or 61 acknowledgements, yet single gaps ranged from 7.2 to 27.1 ms

The full-second counts are 61, then 60 in every remaining full window. The gap histogram exposes the spread hidden by those per-second counts.

Local build 3df87e8f, 639-layer Studio, Half. 906 main-thread acknowledgements in 15,096.8 ms produce 905 gaps. Fixed 1,000 ms windows start at the first acknowledgement; the final partial window is excluded. Histogram bins are 1 ms wide.

Reference lines at 16.7, 25 and 33.3 ms are not measured screen holds. One selected run, not the whole-build verdict.

Data and sources
Full seconds had 60 or 61 acknowledgements, yet single gaps ranged from 7.2 to 27.1 ms
GroupMeasureValueContext
Full-second windows0–1 s61Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows1–2 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows2–3 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows3–4 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows4–5 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows5–6 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows6–7 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows7–8 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows8–9 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows9–10 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows10–11 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows11–12 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows12–13 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows13–14 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Full-second windows14–15 s60Fixed 1,000 ms windows from the first acknowledgement; final partial window excluded.
Gap histogram7–<8 ms3Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram9–<10 ms3Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram10–<11 ms2Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram11–<12 ms3Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram12–<13 ms10Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram13–<14 ms12Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram14–<15 ms20Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram15–<16 ms163Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram16–<17 ms355Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram17–<18 ms234Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram18–<19 ms64Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram19–<20 ms12Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram20–<21 ms9Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram21–<22 ms7Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram22–<23 ms2Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram23–<24 ms2Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram24–<25 ms2Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram26–<27 ms1Main-thread acknowledgement gaps, 1 ms bins.
Gap histogram27–<28 ms1Main-thread acknowledgement gaps, 1 ms bins.
Gap statisticsmin7.2 ms905 gaps from 906 acknowledgements; elapsed 15096.8 ms.
Gap statisticsmedian16.6 ms905 gaps from 906 acknowledgements; elapsed 15096.8 ms.
Gap statisticsmean16.66 ms905 gaps from 906 acknowledgements; elapsed 15096.8 ms.
Gap statisticsmax27.1 ms905 gaps from 906 acknowledgements; elapsed 15096.8 ms.
Gaps over 25 ms2.48 s from observation start26.1 msTime rounded to two decimal places, gap to one decimal place.
Gaps over 25 ms3.07 s from observation start27.1 msTime rounded to two decimal places, gap to one decimal place.
Gaps over 33 msCount0Selected run only; not the whole-build verdict.
One cached play’s acknowledgement gaps, not physical screen holds.
Frame acknowledgements906 in 15.10 scached playback
ACK gaps over 25 ms2 gaps26.1 and 27.1 ms
ACK gaps over 33 ms0 gapscallback timing only

Historical local build 3df87e8f · Apple M1 Max · 639 layers · Half quality · cached play 2 of 3 · requested 15 s, observed 15.10 s · one selected run, not the whole-build verdict4

If you build something that moves

  • Log frame gaps. An fps average can look fine while a frame sits on screen for 200 ms.
  • Choose a target for the timing signal you actually measure, and keep physical display timing separate.
  • Keep the failed runs. A pass on the next try doesn’t erase a miss.
  • Say where you measured: staging or local, which machine, cached or live.

Next I’m chasing a stricter goal: every gap under 25 ms. We aren’t there yet, and slower laptops need their own numbers. More on that in Editing while it caches.3

Sources

The Mootionblue reports below are internal test records, not public downloads. They identify the historical build, setup and signal behind each result. The diagrams and code examples are illustrative.

  1. WHATWG. HTML Living Standard, event loop processing model.

    Animation callbacks run before rendering updates. The fixed-refresh examples use 1000 / 60 and 1000 / 120; they do not measure physical screen holds. Accessed 25 October 2026.

  2. Mootionblue. Candidate 8.5 staging report (C85-STAGING-REPORT.md), 22 October 2026, candidate 8.1 comparison.

    473-layer film: 34.757 median rolling ACK fps and 241.7 ms longest capture-stream callback gap across three plays. These are different callback signals.

  3. Mootionblue. Round 15 local performance report (R15-REPORT.md), 23–24 October 2026, callback guard and timing-meter controls.

    The provisional 29 ms ACK guard, frame-count and source-order checks; failed screen-capture and compositor reconstruction controls. The test host used a ProMotion display with variable refresh; fixed 120 Hz is a reference, not measured screen timing.

  4. Mootionblue. Round 15 receipt, 23 October 2026, local build 3df87e8f, Studio 639, Half, cached play 2 of 3.

    Receipt acceptance-3df87e8f/studio639-half-cached-2.json: 906 acknowledgements in 15.0968 s, two gaps above 25 ms (26.1 and 27.1 ms), none above 33 ms. This selected historical run is not the whole-build verdict.

  5. Mootionblue. Easing-curve illustration, published 24 October 2026.

    The interactive figure computes a glide curve, a straight-line comparison and approximate velocity. It is an illustration with a hold, not measured playback.

Samrat Chowdhury, founder of MootionblueSamrat Chowdhury

Mootionblue is in private beta. Join the waitlist and we’ll send you an invite as soon as there’s room.

No spam. One email when your invite is ready.