Development / Two frames a second
Two frames a second
. The full game.
The second test flight was very slow. The culprit was an outline.
After the first playtest the prototype got a flight HUD: speed and altitude tapes, a pitch ladder, warnings. On the second test flight the controls were running seconds behind the hands on them.
So we added a profiler, and switches to turn features off one at a time.
| View | Before | After |
|---|---|---|
| Chase | 2.3 frames a second | 120 |
| Orbit, afterburner lit | about 2 | 120 |
| Cockpit | 72 | 108 |
It wasn't the terrain, the clouds or the 145,000 triangles. It was the dark outline around the green lines. It had been drawn as a drop-shadow filter, and the browser ran that filter again for every line and every label, about 400 milliseconds of it each frame. Now the outline is a dark line drawn under a light one, and it costs nothing.

The cockpit had its own problem, which was the graphics card drawing every pixel of a Retina screen. There is now a render scale in Options.