All writing
2 min read

Replacing the Spine Benchmark score with measurements

Spine Benchmark used to rate skeletons with a weighted score. Against timings from real phones the score explained 2% of the variation (R² = 0.02). Version 4 measures instead, and shows its error.

In short

  • Versions 1 to 3 rated each skeleton with hand-tuned weights. Measured on real phones, that score explained 2% of frame time.
  • Phones differ in their mix of costs, not by one speed factor, so each device needs its own model.
  • Version 4 shows exact work counters, measures CPU time, and estimates cost per phone with the error next to it.
  • Browsers do not expose GPU time, so v4 reports GPU work as counters and does not estimate it.

The old score

Versions 1 to 3 of Spine Benchmark gave every skeleton an impact score. Each feature had a weight: vertices, bones, IK constraints, clipping masks, blend-mode changes. The tool summed the weighted counts and showed one number. I wrote a seven-part series in Russian that taught animators how to read it.

Every weight was based on a real effect. Clipping is expensive. A blend-mode change breaks a batch. IK costs CPU time. Because of that, the score always moved in the right direction when one feature changed, and it looked trustworthy.

The check

In 2026 I ran the same scenes on ten phones and compared the score with measured frame time. The score explained 2% of the variation: R² = 0.02.

Moving in the right direction for each feature is not the same as predicting how much each feature costs on a given device. The score did the first and not the second.

Why one formula cannot work

Two phones with similar CPU specifications, a Dimensity 9000 and a Tensor G2, measured 8.6 ms and 4.2 ms for the same work. One device is limited by vertex count, another by deformed meshes, another by fill. The weights are a property of the device, so one set of weights cannot fit all of them.

What version 4 does

Version 4 shipped in July 2026. It separates what can be counted from what has to be estimated.

  1. Counters. Draw calls, vertices, state changes, batch breaks, stencil and render-target switches. These are exact.
  2. Measured CPU time. The skeleton's own cost per frame on the current device, with the workbench's overhead removed.
  3. Per-device estimates. Each phone in the fleet has its own regression over vertices, deformed meshes, weighted meshes, covered pixels and draw calls. Seven of the ten phones pass the 30% trust limit, with held-out error from 19.2% to 26.5%.
  4. Visible error. Every estimate is shown with its error band.

The change removed most of the old code: 14 packages of the scoring stack, and the published packages went from 20 to 6. A lint rule now fails the build if the cost formula exists in more than one place, so the CLI and the in-game profiler cannot disagree.

What it does not measure

Browsers do not give a page GPU time. EXT_disjoint_timer_query would, but Chrome hides it on Android and macOS. I tested a fill-rate model as a substitute. On a single device, its implied fill rate changed by 50× between scenes, so it was fitting noise. It is not in v4. The workbench labels its time estimates as CPU only and shows GPU work as counters.

Lessons

  • Validate a model against measurements before people use it. Ten phones and a regression take an afternoon.
  • A score that moves the right way for each input can still fail to predict cost.
  • Exact counts are actionable: "this skeleton breaks the batch four times" tells an animator what to change.
  • Show the error. Readers set their trust from it.

The old Russian series is still on the blog with a note at the top. Its parts on draw calls and clipping are still correct. Its scoring model is not.