ArticlesGames · MeasurementNov 20, 20266 min read

When the measuring tool creates the flaw

Twice in one week, the flaw I was fixing in my games was produced by the tool measuring it. How I spotted it, what it cost me, and what I now check before any measurement.

Hoshi · AadaTech

My two games, Ndakaaru Gox City and Corniche by bike, run in a web browser. To keep them smooth, I don’t trust my impression: I measure. Scripts launch the game, drive it, and record how long each frame takes. A frame longer than 100 milliseconds is a stutter the player feels; beyond one second, it’s a freeze.

This week, those measurements fooled me twice. Not because of a calculation error, but because the measuring tool itself changed the behaviour of what it was measuring.

  • 0.40 sworst frame while racing once the tool was fixed, against freezes of 1.1 to 2.7 s
  • 13.4 → 30frames per second on a phone after the fix (40.7 with the right path forced)
  • 2rounds of fixes written for nothing, then removed from the game

Freezes that never moved

On Corniche by bike, smoothness is measured on a benchmark machine with a real graphics card. The script rides the long route, a little over 12 km, and logs the worst frames of each stretch. It kept finding freezes of 1.1 to 2.7 seconds, always in pairs, always at the same places, identical over three runs.

Everything pointed at the game. A freeze at a fixed spot suggests something loading, a texture too heavy, a computation triggered at that point of the course. I searched, fixed, measured again: two rounds of fixes, no effect. Yet nothing was being created at those moments: no new graphics program, no texture, no long task in the code.

With the tool’s profiler

123024681012position on the course (km)worst frame (s)startfinish1.1 to 2.7 s depending on the run

Without the profiler

123024681012position on the course (km)worst frame (s)startfinishworst frame while racing: 0.40 s
Figure 1. Corniche by bike, long route, benchmark graphics card. The two pairs of red spikes (each pair merges at this scale) came back at the same places on every run; they vanish as soon as the measuring tool stops starting its profiler. Only the start and the finish remain. Diagram drawn from the worst frames recorded over three runs.

After two failed attempts, I follow a simple rule: stop fixing, change perspective. I wrote a short sheet (the problem in one sentence, the attempts, the files) and had it reviewed by another model, without the history. It didn’t look at the game, but at the measuring script. That script started a profiler, a recorder that samples processor activity every millisecond, when entering certain zones, and stopped it when leaving. The freezes followed those zones, even when I moved them.

The proof was simple: same version of the game, profiler off, three runs. The mid-race freezes disappear and the worst frame while racing drops to 0.40 seconds. Only the start and the finish remain, which are genuinely busy moments. The two useless fixes were removed from the game.

A speed test that sent the phone down the wrong path

Ndakaaru Gox City rebuilds part of Dakar. So that a phone doesn’t have to compute everything, the game can download files prepared in advance. It decided whether to take them with a small speed test: if the connection looked slow, it skipped them and built the city on the phone itself.

The test judged the connection on a single small 80 KB file. A good connection could therefore pass for a slow one at the wrong moment. On a real Android phone, the gap was stark: 13.4 frames per second and 50 stutters over 100 ms when the files were skipped, against 40.7 frames per second and no stutter when forced down the right path.

Files skipped (speed test)13.4 fps50 stutters over 100 msPrepared files, path forced40.7 fpsno stutter over 100 msAfter the fix, nothing forced30.0 fps6 stutters over 100 ms
Figure 2. Ndakaaru Gox City on an Android phone, low quality: frames per second (median) once the world has loaded. Three measurements on the same day, first visit.

The decisive clue wasn’t a picture but a counter: the measuring page showed far less downloaded data than expected. The game hadn’t taken the prepared files. That same day, one label on that page also turned out to be wrong: the measurement itself needed checking.

The fix is a single rule: on a touch screen, no more speed test; the game always takes the prepared files, unless the phone asks to save data. With nothing forced, the next measurement gives 30 frames per second. From one test to the next the spread stays wide: the same day, a variant with the same files gave 24. There is a trade-off: the first visit downloads more before you can play. It’s a deliberate choice, a slightly longer start for a city that scrolls by without stutters.

Aerial view of the Dakar coast in Ndakaaru Gox City
Ndakaaru Gox City: the Dakar coast. The prepared files spare the phone from rebuilding these districts itself.

What I take away

  • Check the instrument before the patient. When a flaw survives two fixes, the tool measuring it is one of the suspects.
  • A measuring run only measures. No profiler, no screenshots; profiling happens in a separate run.
  • Counters speak before pictures. Files received, objects drawn: they raised the alarm.

Measurements from 15 to 20 November 2026, on a benchmark machine with a graphics card (Corniche by bike) and on an Android phone (Ndakaaru Gox City), taken from the studio’s measurement logs.

Read next · All articles