Menus first: OpenFlight opens faster
OpenFlight used to build its whole world before it showed you anything. Since 13 November the menus come up first, over a picture of the world you are about to fly, and the world is built behind them while you choose your plane and your track.
What changed
- The menus first. The loading screen now waits only for the 3D engine and the flight model. The world is built behind the menus, and its picture fades into the real thing on the world's first frame.
- The rest, quietly. Once your world stands, the game fetches the rest in the background, what you are likely to need first: the menus' pictures, then the other worlds' files, fetched but not built. With your browser's data saver on, it fetches nothing past your own world.
- Fly before it is in. Press Fly on a world that is not ready yet, and a plate shows it downloading, then building, with Back to the menus while the load goes on behind them.
- Coming back. A returning pilot's game is answered from the copy already in the browser. After we update the game, the browser asks our server only for the files that changed.
The numbers
Measured while it was built, on a first visit with nothing cached, in seconds from opening the page, each the middle of two rounds. "Far" is a line slowed to 300 ms of delay.
| Line | Before | Now |
|---|---|---|
| Fast | 10.8 | 2.5 |
| Far, 10 Mbit/s | 26.5 | 7.4 |
| Far, 2 Mbit/s | 75.6 | 17.6 |
| Line | Before | Now |
|---|---|---|
| Fast | 39.9 | 32.3 |
| Far, 10 Mbit/s | 59.9 | 37.3 |
| Far, 2 Mbit/s | 106.2 | 76.1 |
If you press Fly the moment the menus appear, you are in the air at about the same time as before: 1.4 s sooner on a fast line, about a second later on a far one. The frame rate in flight did not change: about 60 frames a second before and after in our runs.
A file lost on the way
Three days before, on 10 November, the game learned to ask again for a file that did not arrive: up to five tries, waiting a little longer each time. A load that still cannot finish now says why, the line, the server or a missing file, and offers Try again or Reload, instead of sitting on the loading screen. And an update no longer makes a returning pilot download the whole game again, about 14 MB, only the files that changed.
Fewer freezes, four days later
Building the Swiss Valley behind the menus still froze the page for seconds at a time on a slow computer. On 17 November its build went into small steps, so the page keeps drawing while it works. On a slowed down computer far from our server, the freezes over a second went from 10 to 12 down to 2, and the longest from 2.4 to 4.8 s down to under 1.8 s. The world takes as long to build as before, but it holds up the browser far less while it does.
