PerthThe worklog
An open-world game, built in the open
Credits & data

Worklog › Code

Milestone

The first streamed square kilometre

Greenwood, a northern suburb of Perth, streamed from disk at 62 m/s. The overlay is the streamer's own debug view. Stand-in buildings and trees.
Greenwood, a northern suburb of Perth, streamed from disk at 62 m/s. The overlay is the streamer's own debug view. Stand-in buildings and trees.

The square kilometre of suburb that was generated for the size count now goes through the real baker, is mounted by the real streamer, and can be flown over.

It is 64 cells. The generator writes what the baker reads: placements, meshes and rasters, one file for each cell. The baker makes the pages and the coarse levels; the streamer mounts them as the camera moves.

An automatic flight at 62 m/s (the cruise of a light aircraft), 86 seconds, 5.3 km, on an RTX 5060 Ti at 1028 x 744:

Frames67,320
Median frame1.15 ms
95th / 99th percentile1.95 / 3.42 ms
Longest frame36.6 ms
Most in view in one frame28 pages, 3,393 instances, 4,461 clusters
Entered a cell without collision0
Pages refused, instances dropped0
Read from disk75 MB

One change in the engine came out of it: a mesh's clusters are now built on the worker that loads it, not on the main thread.

The same flight, lower. 28 visual pages and 2,555 instances in view.
The same flight, lower. 28 visual pages and 2,555 instances in view.

12 frames of 67,320 were over 16.7 ms; the longest was 36.6 ms. A handful of pages missed their deadlines at the cold start, four of them collision.