forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/common/src/datagram.rsClear filter

Yesterday

🐛 fix: shares hold up on bad networks. A slow or bloated link used to queue seconds of stale video (0.9 s median, 1.5 s p90, ~20 s of freezes per 40 s on a 3 Mbit bufferbloated link). Now: - relay and sender lane share one Link gate (common::datagram): when a path's RTT rises 150 ms over its floor or quinn's datagram queue holds over 250 ms, stop sending video until it drains (2 s cap), then resume on a fresh keyframe - watcher measures queuing from raw transit against a 30 s floor (was offset-relative over 240 frames, which absorbed standing queues and misfired when the clock offset moved) - on congestion the watcher jumps straight to the rung that fits 80% of peak goodput; random loss is ignored unless the 3 s mean stays over 5% (shallow-buffer congestion) - failed up-probes double the wait before the next probe (10 s up to 60 s); the watcher waits for a switch to land instead of a fixed hold - playout delay falls proportionally after a spike instead of 1 ms per 4 frames (was ~40 s to recover) netem matrix (40 s impairment, 2 runs each, base vs fix, p50 latency / frozen s): bloat 868/19 -> 94/3, shallow 284/20 -> 67/9, 800 kbit collapse 921/36 -> 354/22, jitter+loss 411/28 -> 178/9, 4 Mbit uplink p90 949 -> 149, flapping 722/29 -> 180/20; clean calls unchanged. Also: rustfmt, two new clippy lintsAhmet Kaan Gümüş · 3e9d442
🐛 fix: shares hold up on bad networks. A slow or bloated link used to queue seconds of stale video (0.9 s median, 1.5 s p90, ~20 s of freezes per 40 s on a 3 Mbit bufferbloated link). Now:
- relay and sender lane share one Link gate (common::datagram): when a path's RTT rises 150 ms over its floor or quinn's datagram queue holds over 250 ms, stop sending video until it drains (2 s cap), then resume on a fresh keyframe
- watcher measures queuing from raw transit against a 30 s floor (was offset-relative over 240 frames, which absorbed standing queues and misfired when the clock offset moved)
- on congestion the watcher jumps straight to the rung that fits 80% of peak goodput; random loss is ignored unless the 3 s mean stays over 5% (shallow-buffer congestion)
- failed up-probes double the wait before the next probe (10 s up to 60 s); the watcher waits for a switch to land instead of a fixed hold
- playout delay falls proportionally after a spike instead of 1 ms per 4 frames (was ~40 s to recover)
netem matrix (40 s impairment, 2 runs each, base vs fix, p50 latency / frozen s): bloat 868/19 -> 94/3, shallow 284/20 -> 67/9, 800 kbit collapse 921/36 -> 354/22, jitter+loss 411/28 -> 178/9, 4 Mbit uplink p90 949 -> 149, flapping 722/29 -> 180/20; clean calls unchanged. Also: rustfmt, two new clippy lints
🐛 fix: share adaptation. Random loss no longer cuts the rate: the uplink controller only backs off on quinn congestion events, a low send buffer or RTT growth, and FEC parity is sized per frame from the binomial tail of the reported loss (frame miss under 0.1%, keyframes 0.01%), so 5% uplink drop no longer leaves ~1% of frames unrecoverable (sender-side drops never reach the server cache NACKs resend from). Encoder lanes that can't keep up step down (fps to 30, then 2/3 size to 360p) and lower a shared pixel-rate budget that new lanes start within; a step that doesn't cut encode time stops the descent (software 2160p60: 1.5 -> 10-14 fps). A new watch waits a keyframe interval before asking for one, so the ask can't beat WatchShare to the server (NotFound); failed media requests name the requestAhmet Kaan Gümüş · e5ae8bc
🐛 fix: share adaptation. Random loss no longer cuts the rate: the uplink controller only backs off on quinn congestion events, a low send buffer or RTT growth, and FEC parity is sized per frame from the binomial tail of the reported loss (frame miss under 0.1%, keyframes 0.01%), so 5% uplink drop no longer leaves ~1% of frames unrecoverable (sender-side drops never reach the server cache NACKs resend from). Encoder lanes that can't keep up step down (fps to 30, then 2/3 size to 360p) and lower a shared pixel-rate budget that new lanes start within; a step that doesn't cut encode time stops the descent (software 2160p60: 1.5 -> 10-14 fps). A new watch waits a keyframe interval before asking for one, so the ask can't beat WatchShare to the server (NotFound); failed media requests name the request

2026-11-26

⚡ perf: server NACK retransmit, RPS loss recovery (edith c4111899), adaptive playout, delay-based quality adapt, static frame skip, voice 32k + loss-driven FEC, no voice echo, single-copy frames to GPUAhmet Kaan Gümüş · a2e75c8
⚡ perf: server NACK retransmit, RPS loss recovery (edith c4111899), adaptive playout, delay-based quality adapt, static frame skip, voice 32k + loss-driven FEC, no voice echo, single-copy frames to GPU

Harness 1440p60 AV1 Vk, base vs new:
- share viewer latency 109 -> 34 ms
- share viewer cpu 30 -> 14 %
- share fps at 2% drop 55.9 -> 57.9, nacks recover loss
- voice up/down 35.6/41.6 -> 24.2/26.5 kbps, loopback 302 -> 188 kbps

Harness: metrics behind YUMUSH_METRICS, talker linked straight into harness-mic.

2026-11-25

♻️ refactor: one clean schema, integer ids and one transaction per callAhmet Kaan Gümüş · 22b1bb7
♻️ refactor: one clean schema, integer ids and one transaction per call

The database layer is rebuilt on turso with one STRICT schema file in
place of the migration list, integer ids, explicit created_at columns
and settings, log actions and snippet polls stored as bitcode. A single
connection runs every call inside one BEGIN IMMEDIATE transaction and
events are published only on success. SQL lives only in db/, one file
per table, through four helpers and one row reader; disk work for
attachments moves to files.rs. Session tokens are stored hashed.

Fixes case sensitive login against case insensitive uniqueness, logout
leaving the connection signed in, user deletion failing inside a lone
DM call, deleted DMs keeping their voice room, kicking non members,
builders leaving owned groups ownerless, half applied multi step writes
and events sent for failed calls. A stale database file now refuses to
start instead of failing later.
♻️ refactor: validation lives on the call and the client calls directlyAhmet Kaan Gümüş · 7bb542d
♻️ refactor: validation lives on the call and the client calls directly

Each call validates its own fields in Call::validate, run once by the
client before sending and once by the server before handling. GUI code
sends call structs straight through net.call, so the hundred pass through
wrappers in net/mod.rs are gone. Dead code and duplicated logic found by
an audit of the new network modules are removed.
♻️ refactor: one client media owner, datagram v2 and typed callsAhmet Kaan Gümüş · c69c3ca
♻️ refactor: one client media owner, datagram v2 and typed calls

Voice, shares and the mic test live in one client Media owner guarded by
the link epoch, so a stale join never installs after a reconnect and a
blip keeps the capture source. Datagrams become a Packet enum with fixed
little endian headers, derived fragment layout and bounds checked decode;
the server peeks three bytes to route video. Calls start moving to typed
Call structs whose reply type and gate come from the type, beginning
with the user domain. Share throughput unchanged at 59.4 fps.
✨ feat: add reed-solomon fec to screen share videoAhmet Kaan Gümüş · 55b5cdf
✨ feat: add reed-solomon fec to screen share video

Each frame gets 25% parity shards, so a frame survives the loss of any
shards up to that count. Keyframe requests are paced to one per second
and the relay starts a waiting viewer on any shard of a keyframe.
With 10% datagram loss the viewer now sees no frame loss.
✨ feat: add screen sharing with simulcast, hardware codecs and share audioAhmet Kaan Gümüş · e06b4ef
✨ feat: add screen sharing with simulcast, hardware codecs and share audio

Screen sharing over QUIC datagrams. Frames are fragmented with a layer
tag (resolution, fps, codec) and the server forwards one layer per viewer,
switching only on keyframes and telling the sharer which layers to encode.

The client captures through the ScreenCast portal and PipeWire, encodes
each layer on its own thread with VA-API (H264, HEVC, AV1) and falls back
to software H264. Viewers decode in hardware where possible, sync audio
and video on the sharer clock and adapt quality from loss. Share audio
captures everything except communication streams or one picked source.

Adds codec choice, share settings, a viewer pane, live badges and share
metrics, and moves playback to interleaved stereo.