QA sweep: three silent leaks, and cut the overzoom raster cost in half #40
No reviewers
Labels
No labels
agent
agent:ci
agent:done
agent:failed
agent:needs-input
agent:refined
agent:refining
agent:running
agent:shipped
agent:skip
autonomous
autopilot
driven
local
plan
proposal
qa
qa-gap
research
retro
ship
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeroen/cartopolis!40
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/37-qa-sweep-leaks-and-overzoom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #37
The rain shell was spawned with no visibility management and `update_rain` never hid it, so a dry world still drew a full-viewport alpha-blended pass every frame. `rain.wgsl` runs three `rain_layer` octaves per fragment — each with two hashes, three smoothsteps and a step — and multiplies the result by the intensity only at the very end, so at `precipitation == 0` every one of those fragments is computed to reach a guaranteed zero. Dry is the common case: it is what met.no reports most of the time, and it is the state of every scripted `--shot` run unless `--rain` says otherwise. `update_clouds` in this same file already solves this for its own 360 km box, in the same words ("drop the shell out of the frame entirely once it carries no cloud, rather than blending a fully transparent box over the whole view"); the rain shell simply never got the same treatment. Hiding it also skips the material write, which was re-uploading a constant tint and a zero intensity every frame. Also resolves `VIBERFOX_CLOUD_TIME` once into a `Local` instead of calling `std::env::var` — a global lock plus an allocation — on every frame the globe clouds are visible. It is a debug seed; it cannot change mid-run. **Visually unverified**: this container has no GPU or Vulkan driver, so the `--rain 1` case needs `cargo shots` on a workstation to confirm rain still renders. The unit suite (273 tests) is green.