Repository navigation
Conference: a volume slider that holds still, a mover's avatar that doesn't jump, and ~1/8 of the video bandwidth - #819
Merged
Conversation
…t use (§5f) The device id names a device; this gives it authority. Keys (state_device_key.h, on OpenSSL's libcrypto): - A device keeps one 32-byte seed: %LOCALAPPDATA%\cvc\device-key, or $XDG_CONFIG_HOME/cvc/device-key (~/.config/cvc/device-key), made on first use, owner-only on POSIX, and published in one step so two first launches agree on one seed. CVC_DEVICE_KEY_FILE names another file; CVC_DEVICE_KEY (64 hex) gives the seed itself, which is how the browser page passes the one it keeps in localStorage. - For each relay it derives an Ed25519 key, HMAC-SHA256 of the seed and the relay URL, so two relays see unrelated keys. The proof: - A relay with a pin store puts a fresh 32-byte nonce in its Hello to each connection it accepts (Hello.nonce, field 4). - The client answers with a DeviceProof (Frame field 12): its public key and a signature over the nonce, both node ids and its device id, each length-prefixed. One proof per challenge. A proof that arrives before the client's own Hello is held and checked when it comes. - The relay verifies it and pins the key to the device id on first use (state_device_pins). A later proof under the pinned key verifies the link (state_link_report::device_verified); another key, or a bad signature, is refused and counted. A refused device stays in the room, without a tag. A store holds at most 65,536 pins. The room: - participants.<pid>.device is written only for a verified link that holds the pid, and cleared when the pid's holder proved no key, so a takeover does not keep the last device's tag. - arisrv keeps one pin store for both transports, in memory or in a file with --device-pins PATH, and logs refused proofs. - arigl loads the seed and signs for its relay; the page keeps the seed in localStorage (cvc.device_key) beside its device id. Without OpenSSL nothing is derived or verified, and no device has a tag.
…trols that follow the person The Users window's volume slider sat in an auto-width table column. ImGui re-fits such a column to its content every frame, and a slider in a cell took ~65% of it (ImGui's default item width), so the column shrank by a third each frame until reserve_label_width's 48 px floor snapped it back: the bar never held a width long enough to be dragged. The six fixed columns also already filled the 420 px window, which clipped the slider to a sliver. - ImGuiBackend: a slider or int widget in a table cell now fills its cell, so an auto-width column settles at once (cvcgl_imgui_grid_slider: without this the column ends at 13 px, oscillating). - conference_roster.ari: every roster column has a fixed width (vol 72 px), the window is 470 px, and the peer camera tiles move right with it. Each row's two name texts (plain and talking-green) are one group, so the cell exists on a frame where neither visibility check runs and the row no longer shifts left. - Per-peer cam, mic and volume were keyed by roster ROW, and rows are sorted by pid, so a join or leave moved your settings onto someone else. on_tick now parks each row's controls under its pid (ctl.<pid>.*) before the rebuild and gives each row its own pid's back.
Other people's view of a walking avatar was smooth, but the walker's own view jumped. arigl
predicts its avatar locally and replays its inputs on each server pose, so it was the only viewer
that saw the reconcile path, and three things fed that prediction the wrong history:
- The relay's ~1 Hz WebSocket re-broadcast sent a client its OWN intent back. The relay forgets a
path when the client writes it, so the broadcast carried whatever the relay held; with the
client's next write still in flight, that was the previous intent. The client applied it and
predicted on it until the next key change or broadcast, while the server integrated the real one,
so every 20 Hz pose snapped it back and the replay pushed it on again.
- state_inbound_gate::sources (default false): whether a path is a peer's own. room_write_gate
answers with its write rule, and broadcast_snapshot never sends such a path to its source.
- arigl takes a tree intent only when it is not older than its last proposal
(holon_sync read_current_intent; propose_intent now returns its stamp). A stamp of 0, the
document's room-set-intent, is always taken.
- A clock realign wiped the input log. arigl moves its lead with the measured round trip, and any
rise of ~50 ms seeked the clock and dropped the logged inputs, so the next pose snapped the
avatar back by a round trip of walking. Within max_skew_ticks the client now slews its clock
(holon_config::lead_slew, 5%) toward the target instead; the first alignment, joining, still
seeks.
- The local avatar was drawn at its last whole 120 Hz quantum, so frames between quanta stood still
and the rigidly following camera passed that judder to the whole view. display_pose now
interpolates it between its last two quanta by the frame's alpha, as peers already are, and a
reconcile shifts that interpolation with its correction.
Tests: RoomRelayLoopbackTest.ABroadcastNeverEchoesAClientsOwnIntent (the echo, end to end over WS;
fails without the broadcast skip), HolonTest.ALongerLeadIsSlewedIntoWithoutACorrection (a lead step
mid-walk: no correction slewing, one seeking), ClientSlewsTowardANewLead,
TheLocalAvatarIsShownBetweenQuanta, HolonSyncTest.ReadCurrentIntentRefusesAnEchoOfAnEarlierProposal
and RoomWriteGate.AParticipantSourcesWhatItWrites. Each fails with its fix removed.
…taken holon::display_pose now shows the local avatar between its last two quanta by the frame's alpha, so a turn taken on one quantum is drawn on the next. The visor check advances two quanta instead of one.
…ds instead of queueing What each participant cost (the user's question; a 4-person room, every pair in view): - Camera: 640x480 MJPEG at q70 and 30 fps, about 4-5 Mbit/s per receiver (17-22 KB a frame for a detailed scene with webcam-like noise), shown in ~300 px tiles. - Mic: raw 32-bit float PCM at 48 kHz, 1.5 Mbit/s, sent even when muted or silent. - So about 7.6 Mbit/s up and 23 Mbit/s down per client, and the link probe queued behind it. Changes: - The camera is captured at 320x240, 15 fps and q60: about 0.6 Mbit/s per receiver, ~8x less, for the same tiles. stream-capture-camera gains a `quality` option (1-100, default 70); it was always q70. - arigl sends no mic chunk below -48 dBFS RMS more than 0.8 s after a louder one, so a silent or muted mic costs nothing (receivers already mix silence for a peer with no chunks, and its video runs free). A muted camera sends one frame a second instead of 15. - A browser's send backlog is now WebSocket.bufferedAmount (it was always 0 there), so its uplink drops media at the 32 KB threshold instead of queueing it without bound behind every other frame, the link probe included. - On every WebSocket link audio gets four times video's backlog allowance: a congested link sheds video first. The roadmap records the new defaults (and the re-broadcast's no-echo rule from the movement fix). Opus audio and per-receiver rungs are next.
Device keys (#816) is now squashed into feat/h1-room-token; merged with its head as the base, so only this branch's own changes apply. The tree is unchanged.
transfix
added a commit
that referenced
this pull request
Oct 25, 2026
* Bound writes: a relay client writes only its own participant, as itself
The relay applied and forwarded whatever a client sent: another
participant's intent, the server holon's poses, the scene, mutations or
media naming another origin, even a snapshot pushed at it.
state_inbound_gate (cvc/state), installed with
state_transport::set_inbound_gate on gRPC and WS, governs what a
transport takes from the connections it accepts. Dialed connections,
the bridge and the relay's own writes are not gated.
- Identity: a connection speaks only as the node id of its first Hello.
One live connection holds a node id at a time. The first claim wins
until it closes, or until it has been silent for 6 s (three missed
link probes), when the next claim takes it over: a dropped network
leaves the old stream open. The relay's own ids (its transport's and
its shards') are never a client's.
- Origin: mutations, messages and media must name that id, and gRPC
heartbeats must name it as their node. A client's SnapshotResponse is
never applied, and a snapshot request is answered only for a
connection speaking as itself.
- Departure: a close is that peer leaving only when the connection
still held its id.
- Refused frames are not applied, forwarded or bridged; they are counted
in total_inbound_rejected().
room_write_gate is the room's rule:
- a participant writes only inside conf.rooms.<room>.participants.<pid>,
with value, touch or data ops;
- never the relay's keys there: pose, net.relay, and streams.<kind>.ready;
- only on canonical paths of at most 16 segments and 512 bytes (no empty
or padded segment, which the tree would trim onto another key);
- and only for a pid that is one identifier.
Every client write today fits this rule.
arisrv --bind-writes on|off (default on; not an S7 switch) installs one
gate on both transports, and logs refusals as their count grows. The
bench mirrors it. The gate's holder map is file-local, so cvc.dll grows
only 71 names (65,198 of 65,535).
Tests:
- InboundGate{TakesOnlyWhatAPeerMayWriteAsItself, BindsANodeIdTo*,
RefusesTheRelaysOwnId, HandsASilentHoldersIdOver} for gRPC and WS, and
InboundGateSpansBothTransports;
- RoomWriteGate.* (the rule, binding, takeover);
- RoomRelayLoopbackTest.ClientWritesOnlyItsOwnParticipant: what the
relay applies from a client that writes A's intent and pose, its own
pose by normalising paths, the scene and the AOI, and A's intent as A.
Mutants without the relay-id or canonical-path checks fail these.
- NoIntentOrUiDocsLeak now expects the echo refused by the write gate,
and ControlPlaneEgressDrops's pre-S7 baseline turns bound writes off.
* Room token and default device identity (§5f), before usernames
Two credentials a peer can carry before there are accounts.
Room token -- who may join:
- arisrv takes it from --room-token-file PATH or CVC_ARISRV_ROOM_TOKEN,
never from the command line. A token asked for must be a valid one: a
flag with no path, an unreadable or blank file, or a set but empty
variable is an error, not an open room.
- gRPC carries it as authorization: Bearer, now compared in constant
time and counted in total_auth_rejected().
- WebSocket gains auth_config. A browser cannot set an Authorization
header, so the client offers "cvc.v1,cvc-token.<token>" in
Sec-WebSocket-Protocol. The server reads the upgrade request itself,
refuses it with HTTP 401 unless the token is offered, and answers
cvc.v1 (a browser requires the reply to name an offered subprotocol).
- Both checks run before admission, so a client without the token is
sent nothing.
- arigl reads CVC_ARIADNE_ROOM_TOKEN. The browser page takes it from the
invite link's URL fragment (#token=...), which never reaches a server
or its logs.
- With no token configured the room is open, as before.
Each accepted WebSocket connection now does its handshake on its own
thread (10 s deadline, at most 64 at once). One client that connected
and sent nothing used to hold up every join, and stop().
Device id -- which device is this:
- Hello gains device_id (field 3), set with
state_transport::set_device_id().
- default_device_id() is a salted SHA-256 of the OS machine id, the host
name and the user. Under Emscripten it is "" unless CVC_DEVICE_ID is
set; the page keeps a random id in localStorage, per page load where
storage is blocked.
- A client sends scoped_device_id(base, relay URL), so two relays cannot
match one device. A relay ignores an id that is not valid_device_id
(1-64 of [A-Za-z0-9._-]).
- Link reports carry remote_device_id and holds_id.
- arisrv publishes participants.<pid>.device, a room-scoped 16-hex tag,
from the link holding the pid (room_net write_link_devices).
room_write_gate refuses a client's write to it.
- It is an identifier, not a credential: giving it authority needs a
key the device keeps and the relay pins.
* ws: declare steady_ns before the accept loop uses it
The per-connection handshake stamps handshake_started_ns in accept_loop,
above steady_ns's definition: native builds with WebSocket failed to
compile (the wasm build skips accept_loop).
* Device keys: a device proves its id with a key the relay pins on first use (§5f) (#816)
The device id names a device; this gives it authority.
Keys (state_device_key.h, on OpenSSL's libcrypto):
- A device keeps one 32-byte seed: %LOCALAPPDATA%\cvc\device-key, or
$XDG_CONFIG_HOME/cvc/device-key (~/.config/cvc/device-key), made on
first use, owner-only on POSIX, and published in one step so two
first launches agree on one seed. CVC_DEVICE_KEY_FILE names another
file; CVC_DEVICE_KEY (64 hex) gives the seed itself, which is how the
browser page passes the one it keeps in localStorage.
- For each relay it derives an Ed25519 key, HMAC-SHA256 of the seed and
the relay URL, so two relays see unrelated keys.
The proof:
- A relay with a pin store puts a fresh 32-byte nonce in its Hello to
each connection it accepts (Hello.nonce, field 4).
- The client answers with a DeviceProof (Frame field 12): its public
key and a signature over the nonce, both node ids and its device id,
each length-prefixed. One proof per challenge. A proof that arrives
before the client's own Hello is held and checked when it comes.
- The relay verifies it and pins the key to the device id on first use
(state_device_pins). A later proof under the pinned key verifies the
link (state_link_report::device_verified); another key, or a bad
signature, is refused and counted. A refused device stays in the
room, without a tag. A store holds at most 65,536 pins.
The room:
- participants.<pid>.device is written only for a verified link that
holds the pid, and cleared when the pid's holder proved no key, so a
takeover does not keep the last device's tag.
- arisrv keeps one pin store for both transports, in memory or in a
file with --device-pins PATH, and logs refused proofs.
- arigl loads the seed and signs for its relay; the page keeps the seed
in localStorage (cvc.device_key) beside its device id.
Without OpenSSL nothing is derived or verified, and no device has a tag.
* Conference: a volume slider that holds still, a mover's avatar that doesn't jump, and ~1/8 of the video bandwidth (#819)
* Device keys: a device proves its id with a key the relay pins on first use (§5f)
The device id names a device; this gives it authority.
Keys (state_device_key.h, on OpenSSL's libcrypto):
- A device keeps one 32-byte seed: %LOCALAPPDATA%\cvc\device-key, or
$XDG_CONFIG_HOME/cvc/device-key (~/.config/cvc/device-key), made on
first use, owner-only on POSIX, and published in one step so two
first launches agree on one seed. CVC_DEVICE_KEY_FILE names another
file; CVC_DEVICE_KEY (64 hex) gives the seed itself, which is how the
browser page passes the one it keeps in localStorage.
- For each relay it derives an Ed25519 key, HMAC-SHA256 of the seed and
the relay URL, so two relays see unrelated keys.
The proof:
- A relay with a pin store puts a fresh 32-byte nonce in its Hello to
each connection it accepts (Hello.nonce, field 4).
- The client answers with a DeviceProof (Frame field 12): its public
key and a signature over the nonce, both node ids and its device id,
each length-prefixed. One proof per challenge. A proof that arrives
before the client's own Hello is held and checked when it comes.
- The relay verifies it and pins the key to the device id on first use
(state_device_pins). A later proof under the pinned key verifies the
link (state_link_report::device_verified); another key, or a bad
signature, is refused and counted. A refused device stays in the
room, without a tag. A store holds at most 65,536 pins.
The room:
- participants.<pid>.device is written only for a verified link that
holds the pid, and cleared when the pid's holder proved no key, so a
takeover does not keep the last device's tag.
- arisrv keeps one pin store for both transports, in memory or in a
file with --device-pins PATH, and logs refused proofs.
- arigl loads the seed and signs for its relay; the page keeps the seed
in localStorage (cvc.device_key) beside its device id.
Without OpenSSL nothing is derived or verified, and no device has a tag.
* Conference roster: a volume slider that holds still, and per-peer controls that follow the person
The Users window's volume slider sat in an auto-width table column. ImGui re-fits such a column to
its content every frame, and a slider in a cell took ~65% of it (ImGui's default item width), so
the column shrank by a third each frame until reserve_label_width's 48 px floor snapped it back: the
bar never held a width long enough to be dragged. The six fixed columns also already filled the
420 px window, which clipped the slider to a sliver.
- ImGuiBackend: a slider or int widget in a table cell now fills its cell, so an auto-width column
settles at once (cvcgl_imgui_grid_slider: without this the column ends at 13 px, oscillating).
- conference_roster.ari: every roster column has a fixed width (vol 72 px), the window is 470 px,
and the peer camera tiles move right with it. Each row's two name texts (plain and talking-green)
are one group, so the cell exists on a frame where neither visibility check runs and the row no
longer shifts left.
- Per-peer cam, mic and volume were keyed by roster ROW, and rows are sorted by pid, so a join or
leave moved your settings onto someone else. on_tick now parks each row's controls under its pid
(ctl.<pid>.*) before the rebuild and gives each row its own pid's back.
* Conference movement: the mover's own avatar stops jumping
Other people's view of a walking avatar was smooth, but the walker's own view jumped. arigl
predicts its avatar locally and replays its inputs on each server pose, so it was the only viewer
that saw the reconcile path, and three things fed that prediction the wrong history:
- The relay's ~1 Hz WebSocket re-broadcast sent a client its OWN intent back. The relay forgets a
path when the client writes it, so the broadcast carried whatever the relay held; with the
client's next write still in flight, that was the previous intent. The client applied it and
predicted on it until the next key change or broadcast, while the server integrated the real one,
so every 20 Hz pose snapped it back and the replay pushed it on again.
- state_inbound_gate::sources (default false): whether a path is a peer's own. room_write_gate
answers with its write rule, and broadcast_snapshot never sends such a path to its source.
- arigl takes a tree intent only when it is not older than its last proposal
(holon_sync read_current_intent; propose_intent now returns its stamp). A stamp of 0, the
document's room-set-intent, is always taken.
- A clock realign wiped the input log. arigl moves its lead with the measured round trip, and any
rise of ~50 ms seeked the clock and dropped the logged inputs, so the next pose snapped the
avatar back by a round trip of walking. Within max_skew_ticks the client now slews its clock
(holon_config::lead_slew, 5%) toward the target instead; the first alignment, joining, still
seeks.
- The local avatar was drawn at its last whole 120 Hz quantum, so frames between quanta stood still
and the rigidly following camera passed that judder to the whole view. display_pose now
interpolates it between its last two quanta by the frame's alpha, as peers already are, and a
reconcile shifts that interpolation with its correction.
Tests: RoomRelayLoopbackTest.ABroadcastNeverEchoesAClientsOwnIntent (the echo, end to end over WS;
fails without the broadcast skip), HolonTest.ALongerLeadIsSlewedIntoWithoutACorrection (a lead step
mid-walk: no correction slewing, one seeking), ClientSlewsTowardANewLead,
TheLocalAvatarIsShownBetweenQuanta, HolonSyncTest.ReadCurrentIntentRefusesAnEchoOfAnEarlierProposal
and RoomWriteGate.AParticipantSourcesWhatItWrites. Each fails with its fix removed.
* cvcgl_room_view: the local avatar's turn shows a quantum after it is taken
holon::display_pose now shows the local avatar between its last two quanta by the frame's alpha, so a turn taken on one quantum is drawn on the next. The visor check advances two quanta instead of one.
* Conference media: a fraction of the bandwidth, and an uplink that sheds instead of queueing
What each participant cost (the user's question; a 4-person room, every pair in view):
- Camera: 640x480 MJPEG at q70 and 30 fps, about 4-5 Mbit/s per receiver (17-22 KB a frame for a
detailed scene with webcam-like noise), shown in ~300 px tiles.
- Mic: raw 32-bit float PCM at 48 kHz, 1.5 Mbit/s, sent even when muted or silent.
- So about 7.6 Mbit/s up and 23 Mbit/s down per client, and the link probe queued behind it.
Changes:
- The camera is captured at 320x240, 15 fps and q60: about 0.6 Mbit/s per receiver, ~8x less, for
the same tiles. stream-capture-camera gains a `quality` option (1-100, default 70); it was always
q70.
- arigl sends no mic chunk below -48 dBFS RMS more than 0.8 s after a louder one, so a silent or
muted mic costs nothing (receivers already mix silence for a peer with no chunks, and its video
runs free). A muted camera sends one frame a second instead of 15.
- A browser's send backlog is now WebSocket.bufferedAmount (it was always 0 there), so its uplink
drops media at the 32 KB threshold instead of queueing it without bound behind every other frame,
the link probe included.
- On every WebSocket link audio gets four times video's backlog allowance: a congested link sheds
video first.
The roadmap records the new defaults (and the re-broadcast's no-echo rule from the movement fix).
Opus audio and per-receiver rungs are next.
transfix
added a commit
that referenced
this pull request
Oct 25, 2026
#819 (feat/h1-conf-fixes) was squash-merged into feat/h1-room-token and that, as #809, into feat/h1-admission, which now also carries master. Merge base 555f326, the conf-fixes head this branch was built on (its tree is exactly #819's squash). The cherry-picked #793 export filter (5ec3f19) now matches master's own copy, so it merges away.
transfix
added a commit
that referenced
this pull request
Oct 25, 2026
…en two load-bound tests #796's package-linux / libcvc-debug-grpc (the one Debug job that runs the relay loopback tests over gRPC) failed three RoomRelayLoopbackTest cases on a runner ~25% slower than #783's run of the same job. StillOuterPeerReentryNoRealignNoFreeze caught a real gap in #819's clock: a client slewed only once it had seeked (_realigns > 0). A client whose first sample found its clock already in step (it started with the server) never seeks to join, so its first later drift past the slack seeked instead, dropping the logged inputs (the rubber-banding the slew was added to remove). It now slews after any first sample (_synced). New HolonTest AClientInStepFromItsFirstSampleStillSlews fails without the fix. The other two bounded wall-clock rates, not behaviour: - OuterPeerGetsPushesNotLiveFrames: C.cam_sent > 20 (a frame per loop pass at most; the runner managed 20 in 2 s). It only shows C sent all along: >= 10. - LateJoinerBootstrapIsFiltered: the hold released in 1.05 s there (0.07-0.10 s here). The filter, not the timeout, releasing it is asserted separately (timeouts == 0); the bound is now 1.5 s, still well inside the 2 s hold.
transfix
added a commit
that referenced
this pull request
Oct 26, 2026
… field fixes, per-viewer video rungs and Opus mics (#796) The conference stack after #783, squashed through feat/h1-admission: - #796 admission hold: a late joiner's admit snapshot goes through its AOI filter (no other participant's intent, the outer peer by push). - #807 bound writes: a relay client writes only its own participant subtree, as itself. - #809 room token and a default device identity (section 5f); #816 device keys, TOFU-pinned by the relay. - #819 field fixes: a volume slider that holds still, a mover's own avatar that no longer jumps (the WS re-broadcast echoed its intent; the clock slews instead of seeking), and about 1/8 of the video bandwidth. - #821 per-viewer video rungs (the relay re-encodes each camera for each viewer's link: full / half / quarter / thumb / off, adapted from queueing, drops and budget), Opus mics (32 kbit/s instead of 1.5 Mbit/s), a camera-off flag, status dots, and libopus for the libcvc recipe (cvcpkg libopus cvc.8). - 05d0d60: the clock slews after any first sample, not only after a first seek (HolonTest.AClientInStepFromItsFirstSampleStillSlews), and two relay loopback tests bound wall-clock rates loosely enough for a Debug gRPC runner.
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.
Stacked on #809 (
feat/h1-room-token, now carrying #816). Three problems seen running the conference, each fixed in its own commit.1. The volume slider couldn't be dragged
Cause: layout, not state.
volcolumn was auto-width (col_widths: [..., 0]). ImGui re-fits such a column to its content every frame, and a slider in a cell takes ~65% of the cell.reserve_label_width's 48 px floor snapped it back. The bar never held a width long enough to drag.Fix:
on_ticknow keeps them per pid.Test:
cvcgl_imgui_grid_slider, a headless ImGui. Without the backend fix the column ends at 13 px, still oscillating; with it, a steady 48 px.2. The mover's own avatar jumped; everyone else's view was smooth
arigl predicts its own avatar locally and replays its inputs on each server pose. The mover is the only viewer that sees that reconcile path, and three things fed it the wrong history:
state_inbound_gate::sources(default false).room_write_gateanswers it with its write rule, andbroadcast_snapshotnever sends a peer its own paths.read_current_intent;propose_intentreturns its stamp).max_skew_ticksthe client now slews its clock instead (lead_slew, 5%).Tests:
RoomRelayLoopbackTest.ABroadcastNeverEchoesAClientsOwnIntent: the echo end to end over WS. It fails without the broadcast skip, which confirms the echo is real.HolonTest.ALongerLeadIsSlewedIntoWithoutACorrection: a lead step mid-walk needs no correction when slewing, and some when seeking.ClientSlewsTowardANewLead,TheLocalAvatarIsShownBetweenQuanta,ReadCurrentIntentRefusesAnEchoOfAnEarlierProposalandRoomWriteGate.AParticipantSourcesWhatItWrites.lead_slew = 0to keep testing the seek path.cvcgl_room_view's turn check advances two quanta.3. Bandwidth
What it cost, for a 4-person room with every pair in view:
That came to about 7.6 Mbit/s up and 23 Mbit/s down per client, with the link probe queued behind it.
Fixes:
stream-capture-cameragains aqualityoption.send_backlogis nowWebSocket.bufferedAmount(it was always 0 there). The browser's uplink now drops media at the 32 KB threshold instead of queueing it without bound.Test:
cvcgl_media_capturechecks the quality option. q20 frames are smaller than q95 (1,042 vs 2,735 bytes at 160x120), and q0 is refused.Testing
cvcgl_imgui_grid_slider,cvcgl_media_captureandcvcgl_room_viewpass;cvc.dllis at 65,488 exports, under the 65,535 limit until master's build(windows): cvc.dll stops exporting std:: symbols (63,073 -> 18,661 names) #793 reaches the stack.Not in this PR