Repository navigation
Conversation
…nahan's share (O5) foam_step is the turbulence update the GPU runs (foam builds while a texel folds, decays as exp(-t / decay) after; bubbles, crest, spray), foam_look the windrow carve the shader draws it with. foam_history evolves the cascades' h0 over a few seconds, integrates the long cascades' foam texel by texel, and finds two biases: the aging foam's alone covers 0.6 of Monahan's share, the whitecaps' the rest. A unit of work is one cascade's Jacobian, so a caller can slice it.
…ter shading The long and middle cascades' turbulence lies side by side in one 512 x 256 RGBA32F atlas, ping-ponged: one pass a frame, one sampler for the water. OceanFoamCalibration runs foam_history as a sliced task. The GLSL it hands the water: the atlas read bilinear, the windrows, and the shading (GGX with Smith visibility and the sun's disc, footprint roughness from Cox-Munk's slopes, short ripples for the glitter, light through crests, the bubbles), ported from ABYSSAL (MIT, 849ff7f4). GeometryNode can report the uniforms and textures it was given.
…eir level of detail (O5) Both draw the long waves' foam from OceanFoam's atlas, carved into windrows, with the whitecaps on top, and shade with OceanFoam's GLSL. The thresholds are found off the frame. New keys: foam_decay (0: the whitecaps alone, as before), lod_foam (the foam's detail ends there; the mean cover beyond and on the far grid) and lod_shade (the O15 water beyond), on water_controls.ari; coast.water.* in lsystem_coast.
… 105) The cascades' textures are atlases of tiles side by side and every pass does all of them: one time pass, 2 log2 n butterfly passes (OceanButterfly over tiles) and one assemble, texel for texel three OceanFFTs (the test's worst difference is 0). Each cascade's two work tiles sit together, so setActive(k) transforms only the first k. OceanFoam steps from the displacement atlas, and its calibration also finds the whitecaps' bias for Monahan's share with no persistent foam beside them.
- water.profile times the node's work into water.stats.<section>_ms (2 also fences each section on the GPU). - The cascades come from OceanCascades: one displacement atlas (uDisp). - The coast is one atlas (uCoast): the shore distance and the still water's depth, then the shore layer's two planes. The bed's height field is no longer bound. - The near grid is three rings (2, 4 and 8 m at the defaults). The far grid's vertex shader reads nothing. The short cascade fades out by water.lod_waves (150 m). The wake is read only inside its window, its slope from 12 cells instead of 20. - Samplers: vertex 8 -> 3, fragment 9 -> 4 (11 -> 6 with a cloud_sky's shade). - cvc::ariadne::AdaptiveQuality ports ABYSSAL's Quality.tick. AriRuntime ticks it on the wall time between frames, never on the fixed clock, and publishes quality.tier, quality.scale and quality.frame_ms. water_quality maps a tier to the water's distances and switches: the shading, the persistent foam, the wake's window, the short cascade and the far normal. water.quality pins a tier. Drawing only: the physics sea is the same at every tier.
The roadmap's "As built (O21)" under §10.10, the water's frame cost and level of detail under §10.11, and D9's row. O5's frame-cost note names the GPU it was measured on: the laptop's Intel Arc iGPU, where cvcGL's contexts run, not the RTX 4070. docs/ARIADNE.md: water.lod_waves, water.quality and water.profile, and the quality.* keys.
…the calibration package-windows failed the O5 block three times: the thresholds' sliced task had finished within the block's first seven frames, so the value read as the guess was already the calibration's (0.7697) and never changed again. The check now waits on and compares against the guess itself (0.75), so it passes whether the calibration lands before or during the wait.
The water node keeps both: #1311's lagged sea (keyframes, crossfade, fetch maps), gusts, cat's paws and current, and the persistent foam, A4 shading and level of detail. The far grid's cascade weights carry the lee, computed once a fragment and shared by its normal and the shading's unresolved slopes; the cat's paws darken the shaded colour as before. The foam's mean cover, roughness wind and windrow direction follow the sea's wind (its newest keyframe), as the whitecaps' thresholds already do.
…d; the fetch maps into the coast atlas
Conflicts:
- water_node.cpp: the level of detail's shaders and OceanCascades kept, with O13 in them:
- the atlas read (wTexel) gets O13's flow map (wDisp(c, w, tile, adv)) for the cascades the
current carries; wSum and wHt pass uAdvect per cascade;
- the near grid's vertex weights are depth x edge x owWindW(w, gust); the gust and the current
are computed for both grids' vertices (the far grid's fragments read through the current);
- start_ocean takes h0 from the sea's keyframes into OceanCascades; sync_sea uploads per
cascade through OceanCascades::setH0; the tick keeps adaptive quality's tier with
follow_sea / sync_sea in place of the wind rebuild; fadeSpec drives the fades, the cover and
uWindU beside the tier's uniforms.
- ARIADNE.md and water_controls.ari: both sides' keys and wording.
uWindFetch onto the coast atlas: OceanWind::glsl(true) leaves the fetch read to its caller. The
water node packs OceanWind::fetch's texels into uCoast past its planes (upload_atlas; uCoastRows,
uCoastFetch, uWindFetchGrid) and reads them with the same bilinear arithmetic, so the water takes
no sampler for the lee. upload_shore keeps the planes on the CPU; a keyframe's new maps rebuild
the atlas from them. lsystem_coast keeps uWindFetch.
Under a current the middle cascade's persistent foam is read through the same flow map as its
waves (oFoamAt: two reads, weights normalised), so it stays on their folds.
cvcgl_ariadne_realize checks no uWindFetch on either grid and the coast atlas past its planes.
master fails to build arisrvx's python_engine.cpp: #1302 (bridged users) added room(), bridge_presence(), bridge_absent(), bridge_post() and listen_chat() calling server_link() with no argument, written against the process-wide server link that the P0a cleanup replaced with the module's own state, server_link(PyObject *self). Each of the five now names its module argument self and passes it, as the other server ops (lent(), publish(), ...) already do. Found in #1324's pycvc-linux / cp312 job (run 43956686020), which builds the PR merged with master.
# Conflicts: # src/cvcGL/test/cvcgl_ariadne_realize.cpp
…o feat/water-lod #1313 made shader textures fit WebGL2's 16 units, and its realize test checks that no draw runs out with the low-memory mapper at 16. #1314 alone fails that check (its foam atlas is one sampler more than master's water); this branch's packing (the cascades in uDisp, the coast and the wind's fetch maps in uCoast) brings the water back under. No conflicts. cvcgl_ariadne_realize: the WebGL2 section passes (16 texture units, 0 out-of-units warnings).
transfix
enabled auto-merge (squash)
November 17, 2026 00:39
The realize suite runs every node type's checks in one process. In a Linux Debug job (Xvfb, llvmpipe) it took 250.6 s, 50 s under the 300 s a test without a TIMEOUT gets; on a slower runner (#1309's Debug job, where PhConvoy and Ewave also ran about 1.3x longer) it timed out on all three attempts. As cvcgl_ewave, cvcgl_wake and cvcgl_volren_node have, it gets a budget of its own with headroom, so only a real hang fails it.
transfix
disabled auto-merge
November 17, 2026 07:47
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The water's frame cost (OCEAN-AND-WEATHER-ROADMAP.md §10.10, §10.11, D9): the
waternode profiled, its geometric level of detail, fewer samplers, and O21's adaptive quality.This PR carries #1314 (the persistent foam and the A4 shading, O5) and lands it. Since #1313 (WebGL2's 16 texture units, f128352) is on master,
cvcgl_ariadne_realizechecks that no water draw runs out of 16 units with the browser's low-memory mapper. #1314 alone fails it: its foam atlas is one sampler more than master's water, so 60 out-of-units warnings, the flood that locked up the deployed terrain_lab. This PR packs the cascades into one sampler (uDisp) and the coast with the wind's fetch maps into another (uCoast), which brings the water back under: the same check here gives 0 warnings at 16 units. So #1314 lands through this PR, with its base now master.Merges in: feat/ocean-foam 7cb0ce1 (#1314, with master f128352 merged in by the coordinator) as 3686724, and earlier abf41d6 (#1314 with master's O13 wind) as e749578, which moved O13's
uWindFetchinto the coast atlas (OceanWind::glsl(true)) and reads the middle cascade's persistent foam through the current's flow map.What changed
Profiling.
water.profile(0): 1 times the node's work each frame, section by section, intowater.stats.<section>_ms; 2 also waits for the GPU after each section. What it found on terrain_lab (1280 x 720 offscreen, the laptop's Intel Arc iGPU):The cascades in one set of passes (
src/cvcGL/ocean/OceanCascades.{h,cpp},OceanButterflyover tiles).setActive(k)drops the short cascade's passes at the low tiers.Geometric level of detail (D9 (b)'s near part, §10.11).
water.lod_waves(150 m) and is not read past it. A cascade with no weight at a point is never read.Samplers (WebGL2's 16 a draw, shared with the low-memory mapper's arrays).
uDisp).uCoast): the shore distance and depth, then the shore layer's two planes. It replaces the shore grid, the two shore-layer planes and the bed's height field.O21 adaptive quality (
inc/cvc/ariadne/scene_quality.h, ABYSSAL's Quality.tick at 849ff7f4, MIT notice in the header and THIRD_PARTY_NOTICES.md).AdaptiveQualityis the loop.AriRuntime::frameticks it on the wall time between frames, and only off the fixed clock, soarigl snapshotand the tests stay at tier 0 and reproducible.quality.adaptive(1) andquality.target_fps(30). The loop writesquality.tier(0–4),quality.scale(0.5–1) andquality.frame_ms.water_quality; the node'swater.qualitykey, -1 by default, pins one). Drawing only: the physics sea reads none of it.Docs.
arigl info), and the same slip is in water: persistent foam, the A4 shading, level of detail and packed samplers (O5, O21) #1314's PR text.water_controls.ari: sliders forlod_wavesandquality.How it was checked
ariadne_scene_quality_test(new; 11 cases):cvcgl_ari_switch:quality.frame_msreads 156 ms.quality.adaptive0 holds a hand-set tier.cvcgl_ariadne_realize:water.qualityis seeded at -1.water.quality3 gives the simple shading, no short cascade and no persistent foam, and the whitecaps' threshold alone (higher than with persistence).cvcgl_ocean_fft:AriadneLoader.ComboOptionsMayBeAReactiveExpression, as on master). The whole tree builds.cvcgl_ariadne_realize(all of it, including the WebGL2 16-unit section: 0 warnings),cvcgl_ocean_fft,cvcgl_ari_switch,cvcgl_ariadne_physics,ariadne_scene_quality_test(11) andariadne_scene_world_test(36) pass on Windows Release.Frame cost. Measured in one process: terrain_lab at 1280 x 720 offscreen on the laptop's Intel Arc iGPU (
arigl info; the RTX 4070 sits idle), with other agents' builds and snapshots on the machine. Configurations alternated round by round, 16 frames each after 8 dropped. GPU time is from timestamp queries.Texture units. Now in-tree:
cvcgl_ariadne_realize's WebGL2 section (#1313's: the water, the swash and the shade with the low-memory mapper at 16 units, a three-point rig's shadow map) passes with 0 out-of-units warnings on this branch (#1314 alone: 60). Also native, withCVCGL_LOWMEM_MAPPER=force CVCGL_TEXTURE_UNITS=16 arigl snapshotof terrain_lab at e749578 with #1313's commit cherry-picked: no "no texture unit left" line; at 10 units the far grid runs out (control).Earlier, before #1311 and #1313 were on master, on a local branch with #1313's ba9f40b cherry-picked and #1311's
uWindFetchstood in:Frames looked at. Offscreen frames of terrain_lab and the crate lake (arigl snapshot, 1280 x 720), looked at by eye:
--set water.quality=N: tier 1 keeps the rings and the near foam; tier 2 keeps the whitecaps; tier 3 is the plain sea without wakes;Not checked