Blog · What the tests missed

It ran at 200 frames on my PC and 15 on a tester's

Test on the slowest machine a customer has, and let the software step itself down.

In this seriesShow all 4 partsHide the list
  1. 01Every test passed. I'd never used my real voice
  2. 02It ran at 200 frames on my PC and 15 on a tester's
  3. 03Removing the app deleted its key
  4. 04Test and real data shared one ID

On my PC, the game I'm building runs at about 200 frames a second. Then a tester's notes came back: "probably getting 15 frames per second... even less at times."

200 15

My numbers were good, and beside the point

I measured it properly. At nearly the tester's screen size, my PC held 193 to 210 frames a second. The tester's graphics card is older, but by my estimate only about two times slower, which doesn't come close to explaining 15 frames. Something else on that machine was in the way. It could have been a slower processor, the game landing on the built-in graphics, or even the flash drive it was running from.

I couldn't tell from my desk, and guessing wasn't going to help.

Build what helps whatever the cause

  • When the game falls behind, it now drops its simulation rate from 240 steps a second to 120, for that session only. At 15 frames, it runs at full speed instead of in slow motion. Each new session starts at 240 again, so a fast PC isn't affected. The same automated run took 11.72 and 11.19 seconds at 120, and 11.72 and 11.20 at 240.
  • There's a new graphics setting: Auto, Full, or Fast. Fast cuts the graphics card's work by about 42 percent. Auto starts on Full, moves to Fast after three seconds under 30 frames, and stays there.

Ask the machine, not the person

The game now writes a speed report next to itself: the processor, the graphics adapter, the screen, and the frame rate in each place, including the slowest 5 percent of frames. The next time that tester plays, I'll have the real answer. As I write this, I don't have it yet.

Have something in mind?

Tell me what you're trying to do. I reply within two business days.

Get in touch