A cubic world has far more to generate than a column world, so the order of the work decides what a player sees and when. Between 2026-10-30 and 2026-11-17, Cubature changed that order in five ways: it prepares terrain ahead of the players, sends the cubes a player can see first, makes empty sky nearly free, holds arrivals until their ground is ready, and writes the world to disk in fewer, larger batches. None of these changes what generates. Each changes only when the work happens.1
The result
One capture shows the combined effect. The same lifecycle workload ran on the new Riven and Cubature builds and, in the same session, on the previous ones, with seed 8675309 and four Distant Horizons workers. The server went from launch to ready in 38.9 s instead of 86.9 s. The first cubes of the target view arrived 11.9 s after the capture started instead of 87.9 s, and the whole view was delivered in 22.9 s instead of 104.9 s. The worst tick during the full view fell from 277 ms to 173 ms.2
One number moved the other way. The 95th-percentile tick rose from 36.4 ms to 39.9 ms, because the same delivery now ran in 460 ticks instead of 2,100: the work is denser, not larger.2 The sections below take the steps that produced this result one at a time.
Preparing ahead of the players
A generator such as Riven builds large regional plans before it can fill a single cube: drainage networks, hydrology plans, sediment and rock decisions. Cubature now asks the generator to prepare those plans before a player needs them, on a bounded pool of build threads.3
Once a second, Cubature ranks the regions within 8,192 blocks of any player by the time it would take that player to reach them: distance divided by the player's speed toward the region, plus a baseline of 8 blocks a second. A player standing still gets the nearest regions first, and a moving player gets the regions ahead. A governor sets how many regions run at once. It halves its permits when the machine saturates or the server thread waits while the cores are busy, and adds one a second when there is room.3
Preparation also yields to the near view. While the cubes around a player are still waiting to generate or be sent, no new region starts. On a fresh Riven world flown along a land route, the full view arrived in 30.4 s with this hold and in 40.2 s without it.4 Riven's side keeps preparation within its memory budget, so preparing never evicts a plan that a player's own terrain needs.5
The server no longer waits for the first player either. A dedicated server between its ready message and the first join used to sit idle, because preparation ranked regions by players and there were none. It now prepares around the spawn point while no player is present, under the same rules.6
Visible cubes first
Distance alone is a poor order for a cubic world. A cube 40 blocks below the surface is closer than a hillside 60 blocks away, and a player sees only the hillside. Cubature now ranks the cubes it generates and sends by visibility class before distance, taking the highest class over all players:7
- the 5 by 5 by 5 cubes around a player;
- cubes inside their column's surface band, or whose band is unknown;
- cubes between the player's level and the surface band, so a player underground gets their own level and the way up;
- everything else.
The surface band comes from the generator, which can report the range of heights where a column's surface lies. Cubature caches it per column and asks for at most 64 new bands per tick.8 A hidden cube that has waited 200 ticks moves into a catch-up bucket ahead of the surface class, at most one per queue every 20 ticks, so visible work cannot starve the rest.7
Empty sky costs little
Most cubes above the ground hold nothing but air, and Cubature now treats them that way. When the generator classifies a missing cube as empty, Cubature builds the all-air cube directly instead of scheduling a worker and copying a 4,096-block buffer, then continues to population and lighting as before.9 For an empty cube above every column top in a sky-lit world, first light used to queue 4,096 sky light checks and surface tracking ran 4,096 updates that changed nothing. Both now return early, and a test compares blocks, light and height data on both paths.10
Empty cubes are also not saved when they need not be. A generator may report a cube regenerable: empty, with population that creates nothing. Such a cube, generated in the current session and still holding nothing, is left out of the save and generated again on reload. The first save that does store it ends this, so a stored copy never goes stale.11
The generator's classification is conservative by rule. Riven answers "empty" only when ordinary generation would produce nothing but air and no feature from a neighboring column reaches in, and answers "unknown" whenever the facts it needs are not already in memory.12
Arrivals that wait for ground
Joins, respawns, portal arrivals and teleports into unprepared terrain may now wait for their destination instead of generating it all at once on the server thread.13 Cubature prepares a held destination ahead of ordinary regional work, keeps the teleport waiting until its columns are ready, and keeps the prepared data until the columns are installed.1415 Vanilla's movement corrections and immediate arrivals are preserved when workers are disabled.14
Writing less often
Saving a cubic world means many small writes, and each forced write to disk costs time. Three changes reduced the count.
The background writer now gathers: after the first write is published it waits 250 ms by default, then writes everything pending in one round. A crash loses at most one window plus the round in progress, and a clean shutdown writes everything.16 During a flush, each region's whole backlog is now written in one batch. In a probe of the old and new patterns over the same writes, forced writes took 0.10 s instead of 0.92 s. In a flight capture the flush after the flight made 84 forced writes instead of 758 and took 1,495 ms instead of 2,298 ms.17
Compression came next. Storage batches are now compressed with reused deflaters on a bounded set of workers. The same flush took 634 ms, against 1,495 ms with fresh streams on four workers, and the worst tick fell from 1,950 ms to 1,047 ms. A test checks the bytes against the game's own compression over 50 payloads.18
What stays the same
Every step here changes when work happens and never what is generated. Prepared plans are the same pure functions as plans built on demand, and the order of preparation cannot change a result.1 The visibility order was verified by tests but has not yet been measured on its own in a running server; the lifecycle result above measures it together with the other changes.72
Sources
- 1
RivenDecisions: Preparation within bounds - 2
Riven 114837dRecord the lifecycle timing of the current Riven build - 3
Cubature e14bbf9Prepare a generator's regional plans ahead of the players - 4
Cubature ae97b3bHold regional preparation while the native view is behind - 5
Riven fcbe4ecPrepare Riven's regions ahead of the players - 6
Cubature 221ef55Prepare regions around spawn while no player is present - 7
Cubature 2a0130cDeliver visible cubes first - 8
Cubature f747c78Expose cached cube classification and surface bands - 9
Cubature 07994a8Install generator-classified empty cubes without generating them - 10
Cubature 7e1702fSkip redundant initial light work for empty sky cubes - 11
Cubature 7bf7d5dLeave regenerable empty cubes unsaved - 12
RivenDecisions: Conservative cached cube classification - 13
RivenDecisions: Arrival waits - 14
Cubature 92fe8b2Keep teleports waiting for prepared destination columns - 15
Cubature 5047387Retain prepared arrival columns until installation - 16
Cubature 39a1656Gather background storage writes and drain them in rounds - 17
Cubature f945875Write each region's whole backlog in one batch during a flush - 18
Cubature a11dd9eCompress storage batches with reused deflaters on bounded workers