Repository navigation
generated_world: rebuild and repaint as sliced tasks, not in the frame - #984
Merged
Merged
Conversation
A big world froze the browser (14.8 s on a 10.5 km world in the deployed lab): generate_world and paint_surface ran in one call inside the node's per-frame tick. Now, as fe_lab's jobs: - cvc::world::world_builder steps generate_world a stage at a time (row stages a few rows a step, one-call stages a step each); generate_world is the builder run to its end. - cvc::world::surface_painter steps paint_surface a few rows at a time. - raster() splits into raster_begin / raster_rows / raster_finish (same output). - The generated_world node's rebuilds and repaints are a WorldTask on the app's scheduler (the pool natively, a few ms a frame on single-threaded wasm); the old world stays until the new one lands. world.busy / world.progress / world.phase follow it, world.request "stop" ends it, and world_controls.ari gains a progress bar and a Stop button. - The water's ground is sampled once with the world (generated_world::water_ground), not every few frames. - arigl logs at info level ($CVC_LOG_VERBOSITY overrides), as the native examples do: the debug lines were a console call each on wasm.
transfix
enabled auto-merge (squash)
November 3, 2026 00:07
This was referenced Nov 3, 2026
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
… there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways.
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
… and darkness (O18) (#1312) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * ariadne_python: the bridge ops pass self to server_link 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. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) 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
added a commit
that referenced
this pull request
Nov 17, 2026
…1315) * world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * ariadne_python: the bridge ops pass self to server_link 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. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) 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
added a commit
that referenced
this pull request
Nov 17, 2026
* world: the weather model, storm cells on a schedule and authored events (O18) cvc::world::weather is a pure function of its parameters, the world time and authored events (storm, steer, rate, calm): storms on hashed slots run clear, building, storm, clearing and clear, born upwind and timed to cross the area in their prime, riding the steering wind. It publishes the cells, the storm field and a rain rate for O19 and O20. A weather stream is appended to lsys::stream. * cloud_layer: storms close the deck; live base/top with cumulonimbus maps built off the frame set_storms gives each cell a storm share that feeds it, holds it besides the fair-weather coverage and deepens its shade and far opacity. set_deck makes the maps again for new heights; a deck deeper than its cumulus grows cumulonimbus (ABYSSAL's height profile) whose self-shade marches the sun through the tower. prepare_deck / run / adopt_deck build it on another thread, and the cumulus the maps grow from is kept, so a storm deck comes in in about 150 ms. cell_up_tau is the optical depth straight up, for dark bases. * cloud_sky: live base/top, darkness and storms; the weather node in terrain_lab cloud_sky reads sky.base, sky.top, sky.darkness and sky.storms live: a storm deck is built off the frame and swapped into the same near volumes and far shells, the ramp darkens toward a storm's, a darkened cloud's light dims as the cloud above hides the sky, and the storms reach the far shells and the receivers as uniforms (no new sampler). The weather node owns the model over its ground, drives the sky and publishes weather.*; its steering wind is the sky's until O14's scene wind. weather_controls.ari, terrain_lab's weather node, docs and the roadmap's as built. * cloud_sky: build a storm deck as a sliced task, a share a frame where there are no threads std::async cannot start a thread in single-threaded wasm (the Pages gallery, arigl-web), so a storm coming into reach would have aborted the page. The deck's build is now a cvc::sliced_job on the app's scheduler, as generated_world's rebuilds are (#984): on the background pool natively, a few milliseconds a frame on the scheduler thread where there are no threads. cloud_layer::step builds a deck a unit at a time (a variant's map, one layer of its self-shade, one row of its shade), bit-identical to building it at once. deck_threading: cooperative forces the sliced path natively; cvcgl_ariadne_realize runs the storm both ways. * cvcGL: shader textures fit WebGL2's 16 units: the reserve is the mapper's arrays The redeployed terrain_lab still ran out in every water draw: headless Chrome logged 2,318 out-of-units warnings in 75 s once the water came up. VTK sizes its texture-unit table from GL_MAX_TEXTURE_IMAGE_UNITS, which is 32 on a desktop GL but 16 in WebGL2. bindShaderTextures first reserved a fixed 8 units for the low-memory mapper's emulated vertex arrays, which left a draw 8 for its own textures, and the water binds 10 (three cascades, three coast grids, the wake, the bed, two cloud-shade textures). - LowMemoryPolyDataMapper::arrayTextureUnits(): the arrays the draw under way takes, vtkDrawTexturedElements::Arrays (bound in RenderPieceStart, before UpdateShaderEvent fires). bindShaderTextures reserves that many when the drawing mapper (the event's caller, or the node's own) is one of ours, else 8 as before. - A texture that still finds no unit is left unbound, so it no longer sets a -1 sampler, which was a second GL error every draw. cvcGL names the node and texture once. - ViewportManager::limitTextureUnits(n) and $CVCGL_TEXTURE_UNITS cap VTK's table, put back at the start of each render after a GL state reset. With CVCGL_LOWMEM_MAPPER=force, a native run draws within the browser's budget. Native terrain_lab that way logged 1,440 warnings with the fixed reserve ("far" and "near" out of units for uWake: 16 in all, 8 kept, 10 shader textures), and 0 with this change. - cvcgl_ariadne_realize: the water (with a swell, so the swash and coast grids are on), cloud_sky's shade and a shadow-casting sun, drawn with the low-memory mapper at 16 units, log no out-of-units warning. The count is checked to hear VTK's warning. - ARIADNE.md: the browser's texture units, natively. - The comment #1304 added said WebGL2 gives VTK 32 units; it gives 16. * world: the weather's recent storms, their rain radius and the ground's wetness (O19) weather::recent gives the cells whose life reached into a window, alive or gone; rain_radius is where a cell's field passes the rain onset; wetness is how long a recent storm's rain lay over a point over a soak time, times its drying since, the CPU twin of the wet ground the sky draws and the friction O20 will read. * rain: streaks near the camera, shafts, wet ground, rings on the water and fog (O19) The weather node hands cloud_sky the recent storms' tracks and the rain's constants (sky.rain, sky.rain_k) and draws the streaks near the camera: a port of ABYSSAL's Rain, drops placed and moved in the vertex shader as a closed form of time, slanted by the scene wind's one accessor. cloud_sky draws rain shafts below the cloud base in its far shells, wets and darkens its receivers along the tracks and dries them after, puts procedural raindrop rings into the water's normal, and thickens a distance fog with the rain at the camera, all as uniforms: no sampler joins the ground, the buildings, the roads, the trees or the water. terrain_lab's sky lists the streaks; the Weather panel has the rain's keys. * rain: the sky finds the streaks inside the weather's node; the ground off the terrain cloud_sky looked its receivers up among the scene's top-level names, so the weather's streak mesh (weather_rain, a child of the weather's node) was never wired: it drew without the deck's shade and fog, and in the volume layer before the clouds instead of after them. A receiver is now found anywhere in the scene. The streaks' ground under a camera off the terrain is the height at the terrain's edge, not NaN. cvcgl_ariadne_realize checks that the sky wired the streaks. * world: the weather schedules lightning strikes (O20) weather::strikes(t, window) lists the strikes of the last window weather seconds: each recent cell's life in 1 s slots, a slot holding a strike with probability flash_rate times a smoothstep of the cell's intensity from flash_onset, a hashed draw of the seed, the cell and the slot, at a hashed point within its rain radius; ground_share of them reach the ground. A lightning_strike carries its id (the seed of its bolt), its time, its point and one to four strokes, and intensity(age) gives its light. A pure function of the seed, the time and the events, so every client sees the same strike. Test: WorldWeather.LightningStrikesOnSchedule. * physics: rain lowers the surfaces' friction through the material table (O20) surface_class::mu_wet is each class's friction soaked (wet asphalt and concrete 0.55, dirt 0.35, gravel and sand 0.45, grass 0.3; indoor floors keep theirs). cvc::physics::wet_friction(class, w) runs mu toward it by the wetness, and apply_wetness(world, w) sets every material named after a surface class (as add_world_geometry names them) through world::set_material. Test: PhysicsVehicle.RainLowersTheRoadsTractionAndItComesBackAsItDries, a storm crossing the road: braking from 20 m/s the vehicle stops in 25.2 m dry, 37.8 m soaked and 25.2 m three dry times later. * lightning: bolts and their flash; the rain into the scene's friction (O20) The weather node draws the brightest strike of the moment as a bolt, a port of ABYSSAL's Lightning (Lightning.js at 849ff7f4, MIT; notice in the header and THIRD_PARTY_NOTICES.md): a channel from the cloud base to the ground by midpoint displacement, fading forks and in-cloud crawlers, grown from the strike's id, drawn as camera-facing ribbons (a hot core and a blue-white glow, tapering past their ends) in the mesh <id>_bolt, rebuilt once a strike and drawn after the deck as a sky receiver. Its ground point is the ground's height, at the terrain's edge past it. The flash goes to the sky as sky.flash, a frame step ahead since the sky ticks first, and from there as one vec4 uniform, cloudFlash: the receivers add their albedo times it, the water its lit term, the far shells glow round the strike and the background whitens. No sampler is added. In a scene with a physics world the node sets the surface materials' friction from weather::wetness at the vehicles (apply_wetness), at most twice a world second and only when the wetness moves by 1/64; weather.friction off restores the dry friction. Keys weather.lightning, .flash, .friction and .wetness, on the Weather panel; props flash_rate, flash_onset, ground_share, lightning and friction. terrain_lab lists weather_bolt among the receivers. cvcgl_ariadne_realize covers the lightning, the bolt's wiring and the friction. Docs: ARIADNE.md, and "As built (O20, part 1)" in the roadmap, with what F4 needs from O14. * ariadne_python: the bridge ops pass self to server_link 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. * cvcGL: cvcgl_ariadne_realize gets its own ctest timeout (1200 s) 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. * Ariadne weather: the rain's friction is the scene world's, set in the physics step on the clock The wet friction (O20, F6) was set by cvcGL's weather node from its frame tick: at most twice a world second, into the physics world's materials from the next step on. The wetness is a function of the seed, the time and the events, but the step at which the friction changed depended on when a frame came (30 fps, 60 fps or an offscreen capture changed it at different steps), and a host without a renderer (ari, arisrv, a headless test) never applied it, so one document's physics differed by host and frame rate. The friction is physics, so the scene's world now sets it. scene_weather.h: - scene_weather_params / _ground / _soak / _dry read a weather node's props; the drawn node and the world both use them, so the friction follows the storms the node draws. - WeatherFriction (one per weather node, SceneWorld::bind_weather; from_scene and scene_realize both bind it) reads weather.events and weather.friction at sync, and sets the friction in follow() before the physics step: on the first step of each half second of world time, counted in the world clock's ticks (each step's tick from the clock follower), when the wetness at the vehicles (their mean; the weather's centre with none) has moved by 1/64. weather.friction 0 dries the surfaces at the next step. It publishes weather.wetness. A restart sets it again at the next step. The weather node no longer touches the friction (its frame tick is gone) and takes its params and soak/dry from scene_weather. Test: AriadneSceneWeather.TheRainsFrictionIsSetInTheStepOnTheClocksTicks. A headless world lowers asphalt's friction to its soaked value; it first changes on a half-second boundary; a run with uneven 0.137 s frames has the same friction as one with a frame per clock quantum at every tick both see; weather.friction 0 dries it at the next step. * AriadneSceneWeather test: the friction is the wet ground's at the wetness applied (the storm moves on and the ground begins to dry), not a full soak
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 deployed terrain lab froze the browser on a big world: moving World half to 5249 m (a 10.5 km world) stalled the page's main thread for 14.8 s, and a second regenerate never came back.
generate_worldandpaint_surfaceran in one call inside the node's per-frame tick.This runs them the way fe_lab runs its loads, meshes and solves: as a sliced task on the app's scheduler (
cvc/core/sliced_task.h).What changed
cvc::world::world_builderstepsgenerate_worlda stage at a time:generate_worldis now the builder stepped to its end, so there is one code path.cvc::world::surface_painterstepspaint_surfacea few rows at a time.paint_surfaceis the painter run to the end.raster()is split intoraster_begin/raster_rows/raster_finish. The output is the same.generated_worldnode keeps making its first world while the document loads. Every later rebuild (a changedworld.*key, Regenerate, Randomize) and every repaint (world.color) is aWorldTask:world.busy,world.progress(0–100) andworld.phase(the stage and its percent).world.request: stopends the job and keeps the world shown.world_controls.arigets a progress bar (overlay: the stage) and a Stop button.water_fieldused to sample the terrain under every water column every few frames: 102k fBm samples at 320². That ground is now sampled once, with the world (generated_world::water_ground).system.log_verbosity2, as every native example sets;$CVC_LOG_VERBOSITYoverrides it). It printed every debug line. On wasm each line is a console call, and the water's transfer-function update alone logged about a dozen lines every few frames (the console dropped 3,740 messages in seconds). A native terrain_lab snapshot now logs 1 line.Measured
Natively, Release MSVC,
OMP_NUM_THREADS=1(how single-threaded wasm runs it), step budget 20000 units. This box is a loaded production builder, so the times are noisy:height_field, 163 ms city, 124 ms streetsThe live task sizes its budget to about 4 ms a frame, so the row stages yield far more often than this.
Still one call
These still cause a hitch on single-threaded wasm (not a freeze):
height_fieldconstructor;They are noted in the roadmap under G6, Large worlds.
Tests
world_generated_test: 15 tests, two of them new:SteppedBuildIsTheSameWorld: stepped in 2000-unit budgets, the builder visits every stage, its progress rises monotonically to 1, and the world is identical togenerate_world's (heights, raster, buildings, roads, props, water ground). A 256² texture painted three rows a step is byte-identical topaint_surface.SteppedBuildRethrows.cvcgl_ariadne_realizenow checks that:world.halfedit starts a task and keeps the old world until the task lands;world|ariadne_loader|cvcgl_ariadne|road|nav_terrain|sites: 19 of 19 pass on Windows Release.terrain_lab.arirenders as before.Not run here: the wasm build and the browser. That check is the deploy after merge.