722 words
Status: accepted · 28 Nov 2026. Builds on ADR-0076. Retires the native far atlas's place in ADR-0064.
Context
From 400 km the port drew a scatter of specks on a cloudy world. The plan held two ways out: a setting that lets the port's march reach orbit, which leaves the native far atlas with no reader, or a handover by pixel footprint from the port to that atlas, estimated at 600 lines and the largest item in the plan.
The setting the plan named was the wrong one. Raising maxRayDistance from
200 km to 3,000 km changed no pixel at 400 km: over the layers' top the
march starts at its own entry into the shell, so the ray's reach never binds
it. The weather reads at mip 0 there, since a pixel spans about 330 m against
the map's 196 m texels. The stride binds it. The port sizes its first step
from the distance to the layers, minStepSize + (perspectiveStepScale − 1)·d,
which is 4 km at 400 km, and an empty step takes up to maxStepSize, so a
cumulus a kilometer across in a layer two kilometers deep is mostly stepped
over.
Decision
Over the layers' top, the march's stride eases from the preset's to steps of
200 to 300 m that do not grow with distance, and orbit is that row of the
stride. render/cloudsStride.ts holds the law; render/clouds.ts applies it
each frame.
- By the eye's height over the highest layer's top. At or under the top the
stride is the preset's or the author's. From 50 km over it, it is
perspectiveStepScale1, steps of 200 to 300 m, and at least 300 iterations. Between, it moves along a smoothstep, so a meter of height moves each field by at most 1.5/50,000 of its travel, and no frame of a descent steps on it. - Over the configured stride, for the frame alone. The four fields are
march uniforms the port copies from its context every frame, so nothing
rebuilds. The chain takes the configured stride from the context at the
start of a frame, after the settings have flushed, writes the eased one for
the frame's march, and puts the configured one back at the frame's end
(
holdStride). Between frames the context holds what the settings wrote and the tuning panel reads. Inferred from the context instead, a base lost a write that equalled the eased value,lowEnd's 200 m among them. - The native far atlas has no reader. Orbit is drawn by the port, and the atlas goes with the native march (the plan's phase J).
Alternatives considered
maxRayDistance past the limb, the plan's first experiment. It does not
bind over the layers' top, and changed no pixel.
A handover from the port to the native far atlas by pixel footprint. It keeps two renderers drawing one sky, each with its own light and weather, crossing over at a footprint, and the native march's far field with them, which phase J would otherwise retire. The stride made it unnecessary.
Finer steps from orbit. At 100 to 150 m the frame at 400 km cost 34.64 ms for the picture 200 to 300 m draws at 22.13.
Consequences
On the M6 mini at G1, 1920 × 1080 on the dev build, the ground's frame is
15.12 ms as it was, and 400 km up it is 22.43 ms against 10.96 ms with
high's stride and an empty disk: orbit costs more than the ground. The slow
descent cast from 400 km at the rubric's 1440 × 900 at DPR 2 held 28.7 Hz with
the clouds on; the capture refuses a cast past 3% missed frames, and refused
it at 4.1 to 4.5% three times. The step detector, run over a fourth take kept
by hand against the kept clouds-off control, found no strobe and 32 steps the
control lacks, each one or two levels of a cell's mean against a floor of
about one, most where the path did not move between frames, from 296 km to
50 km, where the stride does not change. From orbit the stock weather map's
90 km period shows as a regular pattern across the disk, which is our
weather's to replace. Shadows from orbit are still none (ADR-0078).