Skip to content

OW5c-i: the relay's world on its clients (statics, dynamic and jolt plants, world follow, ground, surfaces) - #1444

Merged
transfix merged 54 commits into
masterfrom
feat/one-world-statics
Nov 23, 2026
Merged

transfix merged 54 commits into
masterfrom
feat/one-world-statics

Conversation

@transfix

@transfix transfix commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

This PR now carries OW5c through OW5i. Joe asked to fold the stack so it needs one full CI run on master instead of six. The five PRs stacked on this one were merged into it, top first: their branches were fast-forwarded to one commit (6d63163), which merged #1448's master-updated head into the top of the stack. Each of those PRs has its own description and tests:

Merging master in conflicted only in a doc comment next to the new WorldVehicles accessors (#1441's set_tick comment, kept) and in the source list (voice_monitor.cpp and vehicle_dynamics.cpp, both kept). For the combined tree, these suites pass locally: scene world 121, holon 52, holon sync 37, room scene 21, room intrinsics 21, room avatar 11, server document 23, world dataset 4, pose stream 13, avatar sim 8, world clock 52, loader 254, dyn 4w plant 8, dyn bike plant 11. arigl builds. arisrv isn't in my local build configuration, so CI is its only check.

The original OW5c description follows.


OW5's third slice (ARIADNE_WORLDS.md §18.5): a client's physics statics now come from the relay's world document. Until now they came from the room scene, which carries only what every client can draw, so the walk a client predicted met none of a document's meshes, terrain or generated buildings. (#1442, which this was stacked on, is merged.)

What changed

  • The room names its world document. room_world_source (conf.rooms.<room>.world_source.{uri, sha256}) holds the URI the document was named by and the SHA-256 of its bytes. arisrv writes it beside the room scene, for a --doc world and for a stock --scene world; a world from a C++ twin has none. Also file_sha256.
  • world_replica (holon_sync): if a client resolves the same URI to a file with the same hash, it builds that document's world as the relay does (SceneWorld::from_scene).
    • A stock world the client ships with resolves this way; that's step 1 of the lookup order in §12.
    • The document's vehicles are left out: they're the room's entities.
    • Its state keys go under a prefix of its own, apart from the client's document.
    • The statics are each static body as the world made it (a mesh's triangles, a terrain's field), plus each node's run-time colliders as they become ready (a generated world's terrain, buildings and edge walls).
    • Only bodies in the physics world now count, since a scene's worlds are on one at a time.
    • If the document can't be resolved or its hash differs, the replica stays not ready and says why.
  • avatar_static gains kind::body (a body_desc, made static, with the default material) and kind::geometry (a world_geometry, added with add_world_geometry). avatar_world now removes those statics' fields too.
  • client_pump(..., world) takes the replica's statics once it's ready, and the room scene's until then. arigl passes one and logs its status.

Tests

  • AriadneOneWorld.AClientBuildsTheWorldFromTheRelaysDocument: a document has a 1 m dome of terrain over a slab, and the room scene can't carry the dome. A client with the replica stands on the dome's top (z 0.99); with the room scene's statics it stands on the slab (z 0). A different document under the same name is refused ("its SHA-256 differs") and the room scene's statics stay. The section round-trips.
  • AriadneOneWorld.AClientStandsOnTheRelaysGeneratedWorld: on a generated world, the client stands at z 1.23 where the relay's ground is at 1.22. Its statics are the land's colliders.
  • Locally, these suites pass: scene world 109, holon 50, holon sync 33, avatar sim 8, room scene 21, room avatar 10, room intrinsics 21, server document 23, world dataset 4, pose stream 13. arigl builds.

Not verified

  • arisrv isn't in my local build configuration, so its change (writing the source) is only covered by CI, and I haven't run a live session.
  • A document the client doesn't ship with isn't fetched yet; that's §12's world packs. Until then such a client uses the room scene's statics, as before.
  • When the relay switches to another of its scene's worlds, nothing is published yet, so a client keeps the world the document starts with.
  • A client's static bodies use the default physics material, not the document's friction.
  • Generating a world on the client relies on the generator producing the same world as on the relay. §12 plans to send the bytes instead, checked by hash.

…7 quanta

ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host
runs the holon's 1/120 s quantum, physics a step a quantum, and the
navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the
0.06 s the shipped policies were trained at.

- sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them;
  adopt_sim_clock puts a fresh clock on the catch-up even at the quantum.
- pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and
  sim_thread defaults follow kSimTick.
- NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick
  (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt
  RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s.
The plant host's own default stays 0.01 s, where navigators at the
trainers' 0.06 s run; the cars template and the scene swarm, which tick
cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's
retarget lands on the first tick at or past 3 s.
0.01 s for a tick of whole 0.01 s steps (every score so far), the
simulation quantum for one of whole quanta (cvc::kSimTick), else the step
nearest 0.01 s that divides it.
ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves
the avatars into a server document's physics world, beside its bodies and
vehicles, and steps that world on the holon's clock: SceneWorld::follow
gains per-step hooks, the avatars driven just before each step and read
after it. A car shoves an avatar; the avatar takes some of its momentum.

- avatar_world over a shared world it does not own: its owner steps it
  and owns its gravity, air and statics; release() and move_to() (a
  world its owner replaced).
- AppRuntime::set_world_external: the runtime stops stepping a world a
  holon runs.
- arisrv attaches the server document's world to the room's holon.
- AriadneOneWorld tests: a Humvee driven into a standing avatar carries
  it down the road and ends behind the same run without it; attach
  refuses a client, a holon without physics and a world on another step;
  avatars stand on the scene's own bodies; detach puts them back.
ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things
in the world the navigators steer around while avoid is on, as foreign
agents to each fleet's separation. A holon running the world sets them to
its avatars before each step, and clears them when it leaves. A car on
nav@1 swings 3.1 m past a person standing in its lane and drives on;
without avoiding it carries them 34 m (AriadneOneWorld).
ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the
holon's world: each participant's person and the attached world's
entities, with kind, controller, driver, owner and policy.
holon::set_driver(pid, entity) puts a participant in a world vehicle: its
person leaves the world (feet and reserve kept), its intent's new drive
axes (avatar_intent::steer, accel; intent.steer/accel on the wire)
replace the vehicle's command each frame, and its state and display pose
are the vehicle's. Getting out puts the person at a clear point beside
the vehicle and gives the vehicle back to its controller.
WorldVehicles::set_driver / driver; the room's entities carry driver.
# Conflicts:
#	docs/roadmap/ARIADNE_WORLDS.md
#	src/cvc/tests/ariadne_scene_world_test.cpp
…40 steps

master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are
2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s
(288 steps) makes 6.1 m.
…bcvc into feat/one-world-avoid

# Conflicts:
#	src/cvc/ariadne/world_vehicles.cpp
#	src/cvc/tests/ariadne_scene_world_test.cpp
…bcvc into feat/one-world-entities

# Conflicts:
#	src/cvc/ariadne/world_vehicles.cpp
#	src/cvc/tests/ariadne_scene_world_test.cpp
…g in by asking

avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock,
throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the
driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops
the vehicle and never backs it up; reverse brakes a car still rolling forward, then
backs it up; a boat has no brake and reverses on its propeller astern. On the wire:
intent.throttle, intent.brake, intent.jump (intent.accel is gone).

The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by
default) when something is under its feet, paying the jump from its reserve.

Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>",
answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds
it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis
box). room-drive / room-driving verbs; room entities carry drivable, reach, controls.

controls.h: control schemes walk, car and boat with their own bindings (Space jumps a
walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering
ramps and hold-to-fire.
… camera; docs

arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus
Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while
the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window).
The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt
over it, "E  Drive <name>", whose ring fills as E is held; a refusal is shown for a
moment. Driving, client_pump plays our own pose out from the relay's samples instead of
predicting it, room_view hides every driver's marker (set_riders), and the camera swings
behind the moving vehicle.

traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares,
the jump and the ask; OW6 is started.
A control binding's pad inputs are read now: buttons by position (A, B, X,
Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+).
Each has a deadzone; an action is its keys' value or its gamepad's, the
larger, and only a key's steering ramps.

Defaults: walk on the left stick (as fast as pushed), look around on the
right, jump A, get in and out on X held; driving, the left stick steers,
RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT).

cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to
the resolver, faces where the camera looks while the gamepad is in use,
turns the camera with the right stick, and names the pad's button in the
get-in prompt. room_view gains intent_from_axes for the analog walk.
A KeyBinding can name its gamepad inputs and where they live (pad,
pad_path). The Controls window shows them in a column of their own with
a Change button: the next gamepad input pressed becomes the new binding.
Keys are ignored while it waits, and Escape keeps the old one.

Runtime::post_pad_press takes the newly pressed gamepad inputs.
SdlGamepad::pressed() lists them each frame (a button gone down, a
trigger or stick half past half way).

arigl's input pump now owns the gamepad: it posts the presses to the
runtime and hands the gamepad to the room's controls, except while the
window waits for a button. Each avatar and vehicle action lists its
gamepad default, seeded at <viewer>.pad.<scheme>.<action>.
world: avatars: archetypes: entries may name one of the world's vehicle
archetypes (vehicle: rover). This is §5k phase 3 for vehicles.

- Choice: a participant picks an archetype under the existing avatar
  choice subtree (participants.<pid>.avatar.archetype, beside color and
  accessory); until it picks, it has the first.
- Server: server_pump rules on the choice (holon::set_archetype) and
  answers in the relay-owned archetype_status. For a vehicle it spawns
  it where the person stands and seats the participant for good: no
  getting out or into another, and the vehicle goes when the participant
  leaves or picks a person again.
- Rules: world_rules::avatar() is now the first person archetype;
  find_avatar is new.
- Room: the archetypes section carries vehicle, and room entities carry
  avatar (whose body it is). drive_target skips such vehicles, and arigl
  shows its owner no get-out prompt.
- Verbs: room-archetypes, room-set-archetype, room-archetype. The
  baseline conference document gains a Body combo beside Colour and
  Wear.
- traffic.ari offers a rover body.
Walking under mouse look, arigl puts the camera at the walker's eyes
(0.92 of its body's height, 5 cm behind them) and hides its own avatar,
so W walks where you look. The orbit distance comes back when mouse look
ends.

The Controls window gains "Mouse look in first person"
(MouseControls::first_person, arigl's camera settings.first_person,
seeded on). Turning it off gives back the over-the-shoulder view.
Driving keeps the chase camera.
A client's holon now holds each vehicle it shows as a kinematic box of its chassis's size where
its playout shows it (holon::hold_entity, on avatar_world's new obstacles), carried on along its
velocity through the frame's steps. The walk it predicts stops at a parked car and is pushed by a
moving one, as on the relay, instead of walking through and snapping back.

client_pump takes the entity_playout and holds every entity except the one the participant drives
or is; arigl pumps the entities first. ARIADNE_WORLDS.md section 18.5: OW5a as built, OW5b and
OW5c still to come.
…/one-world-drive

# Conflicts:
#	docs/roadmap/ARIADNE_WORLDS.md
#	inc/cvc/ariadne/avatar_sim.h
#	inc/cvc/ariadne/holon.h
#	src/cvc/ariadne/holon.cpp
#	src/cvc/ariadne/holon_sync.cpp
#	src/cvc/tests/ariadne_scene_world_test.cpp
cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with
-fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so
ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The
pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
The room scene carries only what every client can draw (planes, boxes, spheres, meshes by URI), so
a client's walk met none of a document's meshes, terrain or generated buildings.

- room_world_source (conf.rooms.<room>.world_source.{uri, sha256}): the document the relay runs;
  arisrv writes it beside the room scene (none for a C++ twin). file_sha256.
- world_replica: a client that resolves the same URI to a file with the same hash builds the
  document's world (SceneWorld::from_scene, no vehicles, keys under its own prefix) and takes its
  statics: each static body as the world made it, and each node's run-time colliders as they
  become ready (a generated world's terrain, buildings and edge walls). Only what is in the world
  now counts.
- avatar_static: kind::body (a body_desc, made static, default material) and kind::geometry (a
  world_geometry, through add_world_geometry); avatar_world removes their fields too.
- client_pump(..., world) takes the replica's statics once it is ready, the room scene's until
  then; arigl passes one and logs its status.

Tests: on a 1 m dome of terrain a client with the replica stands at z 0.99, with the room scene's
statics at z 0, and another document under the same name is refused; on a generated world it
stands at z 1.23 where the relay's ground is at 1.22.
The relay publishes what a client needs to run a `dynamic` vehicle
(dynamic_drive: its preset and five numbers, the navigator's hold on a
command, the ticks it ticks on; WorldVehicles::dynamics,
room_entity::dynamics). dynamic_vehicle_model runs the relay's
dyn_bike_plant with that vehicle alone and no world, one substep a
physics step; dyn_bike_plant::save/restore let the holon log and replay
it. holon::predict_vehicle takes a dynamic_drive, and client_pump uses
it when the room's entity carries one.
Base automatically changed from feat/one-world-predict to master November 22, 2026 20:50
@transfix transfix changed the title OW5c: a client's statics from the relay's world document OW5c-h: the relay's world on its clients (statics, dynamic plants, world follow, ground, surfaces) Nov 22, 2026
…s own

The vehicle a participant drives on the jolt plant (nav_plant: a Jolt vehicle in the relay's
world) is predicted like the dynamic plants'. The room's entities carry it as dynamic_drive with
plant "jolt" (WorldVehicles::dynamics). dynamic_vehicle_model runs it in a Jolt world made as the
relay's scene world is, with the holon's statics and the vehicle alone, and keeps the whole of
that world (world::save) as the vehicle's state, so a sample restores what was predicted for its
tick and replays. New statics rebuild the model's world. avatar_world gains a constructor from a
world_config.

The gearbox, clutch and engine are not in the pose stream; with the relay's sample every 4 ticks
each sample finds the model within 3-5 mm of the relay's Humvee, flat and over a 3 m dome.
@transfix transfix changed the title OW5c-h: the relay's world on its clients (statics, dynamic plants, world follow, ground, surfaces) OW5c-i: the relay's world on its clients (statics, dynamic and jolt plants, world follow, ground, surfaces) Nov 23, 2026
@transfix
transfix merged commit a75cce8 into master Nov 23, 2026
38 of 39 checks passed
@transfix
transfix deleted the feat/one-world-statics branch November 23, 2026 05:47
transfix added a commit that referenced this pull request Nov 23, 2026
transfix added a commit that referenced this pull request Nov 24, 2026
…rld on a worker), and FL2's first part (a world's vehicles drawn at scale) (#1475)

* Fleets: a placed vehicle keeps its fleet and its index in that fleet's navigator

A tick at 2000 kinematic vehicles with summary keys looked a vehicle's fleet up 28,000 times
(14 a vehicle), each a search of the fleets by the key's parts, about twice FL1a's plain find
(#1449 left it), and searched its navigator's ids for its index about as often.

- fleet_of(): a placed entity's fleet is set and cleared with its navigator id (place,
  remove_from_fleet, a failed placing, the world gone). A fleet outlives its vehicles in it, and
  an entity's key doesn't change while it is placed. An entity not placed is searched for as
  before.
- index(): kept on the entity until an agent comes or goes in that fleet (a fleet's agents_rev,
  bumped at each add_agent and remove_agent; an index past a removed one drops by one).
- Debug builds assert both against the search. The scene world, holon, holon sync and server
  document suites pass with the asserts on in a Release build.

Timed in one process on a busy machine (a whole tick's A/B was lost in its noise): a search took
124 to 141 ns and the kept fleet 3 to 6 ns; an index 102 to 122 ns and kept 5 to 8 ns. The
roadmap's 3.1 has it.

* Fleets' D3 as OW7's first part: a drawn host's world steps on a worker, in a local holon

A drawn host stepped its scene world (physics and the fleets' navigators) on the frame's
thread: at 3.6x 60 Jolt vehicles took two thirds of a core, 800 kinematic ones all of it. D3
(FLEETS_AND_NIGHT_ROADMAP.md) moves it off; Joe chose to build it as OW7's first part, the
world in a local server-role holon (ARIADNE_WORLDS.md 18.2). A holon has no thread of its own,
so the worker is new:

- cvc::ariadne::world_worker attaches a SceneWorld to a server-role holon of its own (physics
  on, holon_config_at the world's rate) and runs a thread that keeps the holon's lockstep clock
  tick for tick behind the host's, one quantum at a time, so the world takes the steps the
  host's own follow() would. The host holds lock() for its frame; the worker takes it per step
  and lets a waiting host go first. A step that throws stops it (error()); lag()/behind() say
  how far it is behind; wait_caught_up() is for tests and captures.
- SceneWorld::set_deferred: follow() then only steps. It runs no sync() and writes no key (a
  state subscriber runs on the thread that writes) and calls the worker's capture after each
  step; the host calls publish_due() (sync and the telemetry) under the lock. A restart anchors
  the world on the holon's clock again at once, since the host's clock may be back past where
  it was before the worker looks (the test caught that).
- SceneClockDriver::hold(): a world more than max_lag (0.25 s) behind holds the clock, so it
  runs slower than its speed, as on the frame's thread, rather than further behind.
- cvcGL: AriRuntime::set_world_thread starts a worker for the main scene's world at the next
  frame and holds its lock through frame() (input, pump, tick_scene); tick_scene publishes what
  the worker ran and draws from the poses it captured. The adapter owns the worker and stops it
  before a reload or clear replaces the world. arigl run --world-thread turns it on; snapshots,
  --terminal, wasm, the headless hosts, the gym and arisrv are unchanged.

No holon.h change (coordinated with the One World session, #1444, on dev.tx.wtf).

Tests: AriadneWorldWorker.StepsTheWorldAsTheHostsFollowWould (24 kinematic + 4 Jolt vehicles
through a restart: the same poses bit for bit as the host's follow, the keys written on the
host's thread; 30 repeats), cvcGL test_world_worker_drawn (bodies and their drawn pose as the
frame's own follow leaves them). The scene world (114), holon, holon sync, server document and
cvcGL physics suites pass. On arigl with 200 kinematic vehicles at 3.6x, alternating runs:
58.3 ms a frame against 66.4 on the frame's thread, the world at 3.6x both ways; the rest of
the frame is drawing 200 vehicles (FL2).

* D3: how far a world may lag its clock is a setting, the same on every host

A scene's clock: { max_lag: <s> } sets how far its world may fall behind its
clock: seconds of world time at 1x, growing with the speed as the clock's
catch-up does (by ceil(speed) past 1x), more than 0 and at most 10 s
(cvc::sim_catchup_valid). It was a fixed 30 quanta in world_worker, which is
0.25 s only at 120 Hz.

- On a worker (arigl --world-thread), it is how far the world may trail its
  clock before the host holds the clock: world_worker::options::max_lag is now
  seconds (cvc::kSimCatchup by default), max_lag_quanta() scales it with the
  leader's speed, and a value that is no catch-up is refused, so the world
  stays on the frame's thread.
- On the frame's thread (every single-threaded host, native or browser: arigl
  without the flag, the browser, snapshots, the headless AppRuntime), it is
  the catch-up one frame may run: SceneClockDriver sets the clock's stall
  guard from it when it binds (world_clock::set_max_steps_per_advance, new,
  which keeps the tick, and cap_scales_with_rate). Unset, the clock keeps the
  guard its host gave it, so no existing document changes.
- world_worker::available() is false in single-thread wasm. The worker tests
  skip there, and the browser's arigl says once that it steps the world on
  the frame's thread when given --world-thread.
- sim_tick.h: kSimCatchupMax, sim_catchup_valid, sim_catchup_quanta(_at), and
  sim_clock_config takes the catch-up.

Tests: WorldClockTest.TheStallGuardChangesInPlace,
SimTickTest.ACatchUpIsWholeQuantaAndGrowsWithTheSpeed,
AriadneScene.ClockBlockTakesAMaxLag,
AriadneSceneWorld.TheScenesMaxLagIsTheCatchUpAFrameMayRun and
AriadneWorldWorker.TheWorldMayTrailItsClockByMaxLag. Docs: ARIADNE.md
(--world-thread), WORLD_CLOCK_API.md, ARIADNE_WORLDS.md section 18.2.

* FL2, first part: a world's vehicles drawn at scale, in both holons (#1489)

Each world entity was a scene node of its own: a box look is six boxes and
a group, so 200 vehicles were 1400 actors. On arigl, 200 kinematic vehicles
at 3.6x took 61 ms a frame (19 of runtime, 42 to 46 of drawing), and 800
took seconds.

cvc::gl::ariadne::entity_view (entity_view.h) is the view of a set of
entities, whatever feeds it:
- set_entities (who each is: archetype, fleet, team, colours, look, size);
- promote, from the camera and the ids followed;
- then pose and draw each frame.

Its bodies layer draws the entities it takes as one mesh per archetype and
LOD rung:
- a fitted model gets four rungs (#1358's swarm rungs; decimate_mesh moves
  to mesh_lod.h and the swarm uses it there), a box look one;
- each copy is posed in 3-D, normals too, and culled on the frustum's
  sides. Near and far are left out: the renderer fits them to what it
  draws, and an unposed rung is a point, so a far plane fitted to it cut
  away the entities about to be drawn.

Promotion and layers:
- promote (8) are drawn as their own nodes by vehicle_view: the followed
  (a camera's track.target, vehicles.watch, the vehicle a client drives),
  then the nearest. An incumbent keeps its node until another is a fifth
  nearer.
- a layer of at most threshold (32) promotes them all, so small worlds
  look as before;
- type: entity_layer (of: all | { fleet } | { archetype } | { team }, lod:,
  promote:, threshold:) declares a layer. With none, an implicit layer
  covers every entity.

Two feeds, the local and the server-side holon:
- a scene's own world: update_entity_view in tick_scene. Poses come from the
  physics binding's group of the chassis bodies (bind_group), between steps,
  whether the frame steps the world or #1475's world_worker holon does;
- a relay's entities on a client: room_view::update_entities, from the
  entities section and the client's entity_playout poses.

sync_vehicle_markers draws only the promoted, and adds or removes nodes as
promotion changes. A boat, a mesh file look without fit, or an entity no
layer takes keeps its own node.

Test cvcgl_ariadne_entities (37 checks, 5 repeats): the implicit layer,
follow, keep, the threshold, of:, the world on a worker, and the room.
Locally, cvcgl_ariadne_labels, _scenes, _realize, _swarm, _physics and
cvcgl_room_view also pass.

arigl, 200 kinematic at 3.6x with --world-thread, alternating runs:
- 8 ms a frame (2.4 runtime, 5.4 to 6.6 drawing), against 61 with
  threshold: 100000 (each its own node);
- 800 take 8 ms of drawing. Their world, at 16 to 18 ms a frame, is now the
  cost.

Not yet: the other layers (flags, goals, trails, path, belief, dots,
targets, follow, headlights), of: { fleet } on a client (the room's
identities carry no fleet), and swarm_layer moving here (FL3).

* FL2: a parted look at scale, its wheels dark at every rung

#1471's parted look (look: { chassis:, wheel:, rig: }) is a fitted look whose
one-piece model is null, so the entity view drew every parted vehicle as a
node of its own.

- vehicle_look_mesh_of: a parted look's mesh is its chassis and its wheels
  at rest, each point where attach_parted_model's nodes draw it (the chassis
  fitted per axis; each wheel at its fitted hub, a right one turned or
  reflected as its rig says), the wheels in a tyre's dark. One texture, the
  chassis's. add_part bakes a part by a 3x3 matrix, normals by its inverse
  transpose; the one-piece model goes through it too.
- Role 3, the model's (white under its texture, else the entity's colour),
  so an untextured rung keeps role 2's dark.
- make_rungs decimates each colour role on its own. A coarse rung kept no
  roles, so the wheels would have taken the body's colour.
- sync_vehicle_markers keeps #1471's vehicle_wheels with the markers: a
  rebuild clears them, a demoted vehicle's go with its node.

Test cvcgl_ariadne_entities, parted: the mesh against attach_parted_model's
nodes (mirror turn and reflect, an axle offset); 40 at scale in the model's
four rungs, wheels dark at each rung drawn; one rung (lod: false), each
copy's chassis in its colour and its wheels dark.

* vehicle_view: entity_view.h's include without a trailing comment

CI's clang-format checks only the changed lines, so it would not align this comment with the
unchanged scene_labels.h line under it, while a whole-file format does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant