ArticlesGames · QualityNov 20, 20267 min read

36 races simulated for a 10 cm contact

Ten centimetres, a sixtieth of a second, one race out of thirty-six: nobody would have seen it. The code found it, then re-ran it identically. Why I check my games with test benches rather than by eye.

Hoshi · AadaTech

In Corniche by bike, 21 riders race elbow to elbow. They brush past each other, bump shoulders, tuck in behind wheels. One rule has no exceptions: nothing passes through anything. An arm entering another rider, a wheel going through a wheel, and the illusion breaks.

Watching races to check that rule doesn’t work. A race lasts several minutes at 60 frames per second; a flaw can last a single frame. So I wrote benches: programs that run the game without displaying it and check every frame.

  • 36full races simulated, across the three routes
  • 1faulty frame found, then re-run identically
  • ≈ 1,100 → 1.5player position jumps per minute, before and after

One cell out of thirty-six

The overlap probe runs 36 full races: the three routes, each with twelve random draws fixed in advance. Fixing the draw means the same race can be run again: same start, same attacks, same paths, down to the frame. The tolerated margin between two riders is 10 cm.

SprintMamellesLong111213141516171819202122seed↑ a single frame, 10 cm, at t = 188 s
Figure 1. 36 full races simulated, three routes, twelve draws fixed in advance. A single cell holds a forbidden contact: a 10 cm overlap during one frame, on the long route, draw 22. Because the draw is fixed, the race re-runs identically, right up to that frame.

With a new, more reactive behaviour for the opponents, the probe found a single case: a 10 cm overlap during one frame, on the long route, draw 22, at 188 seconds. Re-running that draw up to that moment revealed the cause: a rider caught in a sandwich. One neighbour was pressed against the edge of the road, the other pushed him towards the first, and the position correction, done once per frame, sent him back into his neighbour.

The correction now repeats until nobody overlaps any more, eight times at most. With the strictest count, 41 faulty moments spread over two races go to zero. The cost is around a thousandth of a millisecond per frame.

Shoulder-to-shoulder contacts that trembled

Another bench looks after the contacts themselves. It simulates races without drawing them, with the game’s physics at 60 steps per second, and counts what the eye feels without being able to name: a rider jumping one centimetre with no speed, a heading that wobbles, a tremor.

It found a sawtooth: when two riders stayed leaning against each other, the stop snapped them back in one go, twenty times a second. After the fix, over twelve races, the player’s position jumps fall from about 1,100 to 1.5 per minute, and tremors from 167 to 27.

Player position jumps, per minutebefore 1,088.7after 1.5Player tremors, per minutebefore 167after 27
Figure 2. Contacts simulated without display, 12 races (3 routes × 4 draws), before and after fixing the stop. Each row has its own scale.

The same bench also caught the side effect. With the first setting, contacts were clean, but an average player on easy lost places: they finished 8th on average instead of 4th. The final setting brings them back towards 5th place without losing any cleanliness.

4684.3Before8.0First setting4.8Final settingaverage finishing place (higher up = better)
Figure 3. The same bench exposed the first setting’s side effect: the shoulder-to-shoulder contacts were clean, but an average player on easy finished far behind. The final setting keeps them clean without costing the race.

When the bench says no

On Ndakaaru Gox City, every display optimisation goes through a fingerprint check: the same views are rendered before and after, and the changed pixels are counted. An optimisation is only switched on if the picture stays the same.

This check approved a simplification of the vehicles, with an identical fingerprint on 40 samples out of 40. It also rejected another one that cut the number of draw calls by six: it changed 157 to 217 pixels per view, when two identical renders differ by only 5 to 15. Looking into why, we found it drew objects the game hides, and shadows that don’t exist.

Two identical renders5–15 pxOptimisation tested157–217 px
Figure 4. Ndakaaru Gox City: differing pixels per view. The natural gap between two identical renders is the yardstick; the optimisation exceeded it tenfold and was rejected.
The Corniche by bike bunch at the start, the African Renaissance Monument in the distance
Corniche by bike: 21 riders at the start. Every contact between them goes through the benches before reaching the game.

What I take away

  • A one-frame flaw isn’t found by eye: it’s counted.
  • Fixing randomness lets you re-run a bug, and so understand it.
  • A bench also guards against its own fixes: it saw the lost race before a player lost it.
  • Every flaw found once becomes a permanent check: it never comes back unannounced.

Benches run from 14 to 20 November 2026 on Corniche by bike and Ndakaaru Gox City; figures taken from the development logs of both games.

Read next · All articles