A cubic world loads only the cubes near a player, so everything past that box has to come from somewhere else. In Riven's worlds it comes from Distant Horizons, which draws levels of detail (LODs): coarse stand-ins for distant terrain, built from a preview that describes each column without generating it. This text records how that distant view is now fed, how it is kept from slowing the ground at a player's feet, and how shader packs shade both views.
Two views of one world
The distant view and the near view describe the same world. Riven owns every placement in its worlds so that the Distant Horizons preview draws the same models as the native cubes, boulders, trees and ground cover included.1 Distant Horizons 3.3.3 is the long-term base, and Cubature takes ownership of its generation, scheduling and delivery: its own code where Distant Horizons' API allows, and patches under Distant Horizons' LGPL-3.0 license otherwise.2
The two views compete for the same machine. Every distant tile is sampled on the server, and the cubes a player stands among are generated there too, so the order between them decides what a player sees first.
Near ground first
The first rule is that near ground comes first. A player's native view is the box of loaded cubes around them. While more than one face of it still waits to generate or be sent, as after a join or a teleport, no new preview tile starts; tiles already running finish.3 Preview tiles also run on a bounded pool of their own, a quarter of the processors by default, between one and eight threads, in place of Distant Horizons' own executor. A governor halves that pool's permits when the 95th-percentile server tick reaches 45 ms and tiles ran.4
Riven keeps the two kinds of work apart on its side as well. A distant tile can start large regional builds that native generation will need much later, and on a shared pool those builds held threads needed by native generation's own builds. Preview columns now build alone on their own thread, and native generation keeps the shared pool.5
Smaller costs went too. Each preview tile wrote about 20,000 data points through a shared lookup of Distant Horizons' block-state wrapper, which held 460 of 17,568 preview-thread samples in a profile of one flight. Each tile now keeps its own map, and the data Distant Horizons receives is identical.6
Asking in the order the player arrives
Distant Horizons asks for sections of distant terrain nearest first, which suits a player standing still and fails one in flight. Cubature's arrival plan, on by default, asks for sections by when the player will reach them instead, at an on-time level of detail that starts at 4-block cells. Sections the native view already covers, or will cover before their data could arrive, are held back, and the server starts the waiting tile whose request came first.7
The plan was measured on a fixed land route. At 16 blocks a second, the share of 1-block tiles that landed inside the native view, wasted work, fell from 42% to 5%. At 34 blocks a second, terrain stood ahead in every flight screenshot where Distant Horizons' own order left none in the last third, and 1-block waste fell from 45% to 17%.7
Three rules refine when detail is spent. When a player stops, the plan recovers fine detail again: before, a player at rest after a flight saw 16-block placeholder cells immediately beyond the native view, because finer sections waited behind every coarser one.8 The 1-block ring around the native view gets priority only while the server can afford it, since ranking it first in flight starved the middle distances.9 At a join and after a teleport, coverage comes first.10
The last rule follows the shape of a cubic view. The native view is a box, not a column: from Y 320 with a 12-cube view it reaches down only to Y 128, and ground lower than that was never asked of the server. Sections the native view covers are now held back only where that view shows their ground.11
Keeping detail once it is built
Distant Horizons merges an incoming column into its store when the new data is at least as complete as the old. Preview tiles report the same completeness at every level of detail, so a coarse answer could replace columns that Distant Horizons had built from full-detail tiles, and land already shown in detail turned coarse again. Cubature now keeps those columns against coarse answers.12
A pregenerated world keeps its distant data too. The server normally hands Distant Horizons at most two changed columns a tick, and a pregenerator unloads its columns long before that feed reaches them. A pregenerator can now hand a column to Distant Horizons at once.13
Shading both views
Riven targets three shader packs under Demonica, each pinned by hash to an official release: BSL 10.1.8, Complementary Reimagined r5.9.3 and Complementary Unbound r5.9.3. A pack qualifies only if its pinned release lists Minecraft 1.12.2 and carries Distant Horizons programs, so the same pack shades near and distant terrain. Pack files are never committed or redistributed.14
Each pack was checked on a fixed tour of six views: coast and high horizons, a woodland, a chasm at Y -60, and a night horizon with lights. Every pack captured all six views without a shader compile error, drew the far islands and water in its own fog and color, and held the 120 fps cap except on the woodland canopy and BSL's first view.15
A cubic world needed a few adjustments for packs written for flat ones. Demonica reports the world's bottom as Y 0, and BSL fades sky, fog, clouds and sun within six blocks below it. Cubature reports the cubic world's real floor instead, and a camera in a chasm at Y -60 now sees the sky. Riven's cloud base sits at Y 256, which both vanilla clouds and the packs read. For BSL, the /riven shaderprops command writes a local copy of the active pack that maps Riven's blocks and biomes to the vanilla entries they behave like, so Riven's plants wave and its glowing rocks glow along their streaks.15
One fix waits on permission. Complementary sets its cave fog by depth below a fixed Y 61.9, so Riven's caves above sea level get none. Cubature carries an opt-in patch that measures depth below the camera's own column surface instead. In a dripstone cave above sea level it gives the fog the pack intends, halving the far contrast (a standard deviation of 15.5 to 8.0), and the six surface views are unchanged. Complementary's license allows no modified copy, so nothing distributed enables the patch until its authors permit it.1415
A fix for GTCEu: Reloaded under Demonica
With Demonica installed, GTCEu: Reloaded stopped the world from drawing at all: Celeritas never built a terrain section. The cause was GTCEu's bloom hook, inherited from upstream, which wrapped the same rendering call that Demonica redirects. GTCEu: Reloaded now skips that hook when Celeritas or Demonica is present, since Celeritas already draws the bloom layer in its own passes.16
Open questions
Two questions remain on the record. With the arrival plan at 34 blocks a second, more native cubes were not ready in time than without it, 1,126 against 615, and the cause is not yet known.7 Client rendering as a whole is not yet qualified on the current Cubature build.17
Sources
- 1
RivenDecisions: Full worldgen ownership - 2
RivenDecisions: Own the Distant Horizons pipeline - 3
Cubature ad21203Hold Distant Horizons previews while the native view is behind - 4
Cubature b5e2ecdSample previews on Cubature's own pool, paced by the tick's tail - 5
Riven bbfe137Keep the build pool for native generation: previews build alone - 6
Cubature c9db89fCache DH's block-state wrapper per preview tile - 7
Cubature 5e134f4Ask for Distant Horizons sections in the order the player reaches them - 8
Cubature dc75659Recover LOD detail at rest and request the 1-block ring on time - 9
Cubature 18b01d2Give the 1-block ring priority only while the server can afford it - 10
Cubature 90715a3Keep coverage first at a join and after a teleport - 11
Cubature 6db2f82Hold a covered section only where the native view shows its ground - 12
Cubature 5daeb13Keep LOD columns DH built from finer data against coarse answers - 13
Cubature e378241Let a pregenerator hand a column to Distant Horizons at once - 14
RivenDecisions: Shader packs - 15
RivenRuntime: shader packs - 16
GTCEu-Reloaded 58e4e76Skip the bloom pass under Celeritas and Demonica - 17
RivenCubature lock: qualification limits