forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/client/src/share/session.rsClear filter

Today

✨ feat: Windows share picker is a live thumbnail grid: xcap lists screens and windows without cloaked/tool/own junk, rescans every 1.5s, thumbnails refresh within a 100ms budget per tick and are cached per window, rows virtualized. 🐛 fix: window share follows resizes (encoders reopen once the new size holds 300ms); share button ignores clicks while a start/stop is in flight, so Linux no longer stacks portalsAhmet Kaan Gümüş · 38b4cd2
✨ feat: Windows share picker is a live thumbnail grid: xcap lists screens and windows without cloaked/tool/own junk, rescans every 1.5s, thumbnails refresh within a 100ms budget per tick and are cached per window, rows virtualized. 🐛 fix: window share follows resizes (encoders reopen once the new size holds 300ms); share button ignores clicks while a start/stop is in flight, so Linux no longer stacks portals

Yesterday

🐛 fix: shares recover faster from bad links. QUIC's Cubic cut its window on every random loss (2% loss capped a share near 1.4 Mbit): a loss-tolerant wrapper only reacts when RTT is up 25 ms over its floor, loss tops 10% in a second, or congestion is persistent (GCC's 10% loss band); the sender's rate scale follows the same rule. A relay pause now holds a viewer on its layer and resumes with a recovery frame off the last acked frame instead of a keyframe; paused viewers get no resends. The viewer skips frames older than a keyframe or recovery frame instead of NACKing them, counting them as loss (which pushed sharer FEC to 30%) and stalling the recovery frame behind them. Up-probes start after 5 clean seconds (was 10).Ahmet Kaan Gümüş · d485dbd
🐛 fix: shares recover faster from bad links. QUIC's Cubic cut its window on every random loss (2% loss capped a share near 1.4 Mbit): a loss-tolerant wrapper only reacts when RTT is up 25 ms over its floor, loss tops 10% in a second, or congestion is persistent (GCC's 10% loss band); the sender's rate scale follows the same rule. A relay pause now holds a viewer on its layer and resumes with a recovery frame off the last acked frame instead of a keyframe; paused viewers get no resends. The viewer skips frames older than a keyframe or recovery frame instead of NACKing them, counting them as loss (which pushed sharer FEC to 30%) and stalling the recovery frame behind them. Up-probes start after 5 clean seconds (was 10).

netem, 40 s impairment, avg of 2 runs, freeze s / fps / p50 ms (before -> after): flap 19.5/8.1/180 -> 5/12.6/126, after-phase fps 16.6 -> 22; jitter 9/11.3/178 -> 5/17.4/160; 3% random loss 8.5/11.3/94 -> 0.5/25.7/130; shallow 9/12.7 -> 4/14.7; collapse to 800 kbit 21.5/5.8/354 -> 20/5.9/305 (capacity-bound: lowest rungs of screen and camera together exceed the link)
🐛 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-29

2026-11-28

🐛 fix: lost capture sources end their share instead of freezing (camera stall watchdog since v4l reads block forever, pipewire Unconnected ends screen share); share menu refreshes camera list liveAhmet Kaan Gümüş · cb6d0a6
🐛 fix: lost capture sources end their share instead of freezing (camera stall watchdog since v4l reads block forever, pipewire Unconnected ends screen share); share menu refreshes camera list live
✨ feat: Turkish language, redesigned person card, Ctrl+K and room headerAhmet Kaan Gümüş · 61a5ac2
✨ feat: Turkish language, redesigned person card, Ctrl+K and room header

Translations live in crates/client/lang/{en,tr}/*.txt and build.rs turns them into typed Words; language is a setting, defaulting to the system locale. Dates take month names and order from the language files.

Person card: name alone, status under it, presence is the avatar dot (own card: dot opens a presence menu), account switcher is a chevron after your name. Ctrl+K and the room header follow the approved canvas. The app reopens the last chat per account. The sidebar shield button is gone (Builder lives in Ctrl+K). Stale avatar size test fixed.

2026-11-27

✨ feat: camera device selection (saved, switches live); camera popover shows devices, screen popover shows Sound; resolution/fps/codec fold under Quality in bothAhmet Kaan Gümüş · 2d82f82
✨ feat: camera device selection (saved, switches live); camera popover shows devices, screen popover shows Sound; resolution/fps/codec fold under Quality in both
✨ feat: Windows share picker (screens and windows, own window excluded); ping line coloured by connection quality; wordmark is yumush, click flips to yumuş with the tail dropping inAhmet Kaan Gümüş · e02f563
✨ feat: Windows share picker (screens and windows, own window excluded); ping line coloured by connection quality; wordmark is yumush, click flips to yumuş with the tail dropping in
✨ feat: Windows zero-copy screen share: the WGC frame is copied into edith's D3d11Pool in the capture callback and the encoder reads the shared texture (encode_d3d11), 3 frames in flight against the ring of 4; falls back to cpu copies when d3d11 import is unsupported or fails; edith 9b677004; Dmabuf renamed Gpu (one GPU frame type per OS)Ahmet Kaan Gümüş · cf604c4
✨ feat: Windows zero-copy screen share: the WGC frame is copied into edith's D3d11Pool in the capture callback and the encoder reads the shared texture (encode_d3d11), 3 frames in flight against the ring of 4; falls back to cpu copies when d3d11 import is unsupported or fails; edith 9b677004; Dmabuf renamed Gpu (one GPU frame type per OS)
✨ feat: builder sees live stats per user (follow → client pushes) and server stats on Overview; usage sampler is its own crate; Save/Confirm only when changed; clearer toggle; aligned builder actionsAhmet Kaan Gümüş · 3ba4696
✨ feat: builder sees live stats per user (follow → client pushes) and server stats on Overview; usage sampler is its own crate; Save/Confirm only when changed; clearer toggle; aligned builder actions
✨ feat: share frames are pulled on display frame callbacks (timer only as stall fallback), 8 ms present lookahead, no 30 fps inactive throttle; metrics log presented fps, dropped, interval and sender gap p50/p95, delay swingAhmet Kaan Gümüş · 9668bbd
✨ feat: share frames are pulled on display frame callbacks (timer only as stall fallback), 8 ms present lookahead, no 30 fps inactive throttle; metrics log presented fps, dropped, interval and sender gap p50/p95, delay swing

2026-11-26

🐛 fix: share frames still arriving through the pacer were expired as lost after ~40ms on low-RTT links, causing 5-28% frame loss and quality flapping at any resolution; gap wait now counts from the frame's last packet, queuing uses the 1s minimum lateness so a keyframe backlog isn't read as congestion, YUMUSH_TEST_NOISE fake capture for high-bitrate benchesAhmet Kaan Gümüş · 02267bd
🐛 fix: share frames still arriving through the pacer were expired as lost after ~40ms on low-RTT links, causing 5-28% frame loss and quality flapping at any resolution; gap wait now counts from the frame's last packet, queuing uses the 1s minimum lateness so a keyframe backlog isn't read as congestion, YUMUSH_TEST_NOISE fake capture for high-bitrate benches
⚡ perf: hardware decoder scales to the widest on-screen surface showing the stream (edith d51b2ae6 set_rgb_output), software path too; fix dark theme lost by the font presetAhmet Kaan Gümüş · 4269b1d
⚡ perf: hardware decoder scales to the widest on-screen surface showing the stream (edith d51b2ae6 set_rgb_output), software path too; fix dark theme lost by the font preset
⚡ perf: DMA-BUF screen capture straight into Vk encode (edith 7836ccd5) with shared-memory fallback, camera opens at the configured resolution instead of the largestAhmet Kaan Gümüş · 6b212ab
⚡ perf: DMA-BUF screen capture straight into Vk encode (edith 7836ccd5) with shared-memory fallback, camera opens at the configured resolution instead of the largest

- PipeWire offers edith's importable modifiers first, then SHM; an import failure renegotiates to SHM
- capture callback holds the buffer until every encode lane drops the frame
- camera prefers raw over MJPEG at equal size and reopens when camera quality changes
- frame counters seed from wall clock so a reopened share keeps counting forward
- YUMUSH_NO_DMABUF disables the GPU path
⚡ 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: 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.
♻️ refactor: simplify the whole workspace and fix the bugs found on the wayAhmet Kaan Gümüş · d58bc19
♻️ refactor: simplify the whole workspace and fix the bugs found on the way

Collapse duplicated helpers across client, server and common: one gui widget
module, one capture worker type, shared db query helpers, one name validator.
Gate the capture modules behind a stub so macOS compiles again, close the
portal screencast session on stop, stop camera read spins, stop double
WatchShare requests, fix frame pacing jitter drops, mention prefix matching,
validation holes and a set of server cleanup and auth gaps.
⚡ perf: scale and convert share frames on the gpuAhmet Kaan Gümüş · d9eb963
⚡ perf: scale and convert share frames on the gpu

Hardware layers hand BGRA straight to ec-hw, which scales and converts
to NV12 in one Vulkan compute pass. Only the software H.264 fallback
still converts on the CPU.
✨ 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.
🐛 fix: crop and stop delaying software h265 framesAhmet Kaan Gümüş · 96addff
🐛 fix: crop and stop delaying software h265 frames

Bumps edith_codecs so the software H.265 decoder crops to the
conformance window and emits each picture without waiting for the next
one. The round trip test now checks every codec in software against
hardware.
✨ feat: add software av1 decode and video loss injection for testsAhmet Kaan Gümüş · 8c90a0d
✨ feat: add software av1 decode and video loss injection for tests

Viewers without hardware AV1 now decode it in software, and the round
trip test checks software against hardware decode. YUMUSH_TEST_LOSS drops
a share of incoming video datagrams to exercise auto quality. Software
H264 encodes on four threads, and viewers dropped after a source change
are told the share stopped.
🐛 fix: apply share settings live and fix share stats and settingsAhmet Kaan Gümüş · 6cc4c4c
🐛 fix: apply share settings live and fix share stats and settings

Changing resolution, fps, codec or audio while sharing now updates the
running share in place: the server keeps the viewers and re-picks
their layers, and the client keeps its capture. Before, a change did
nothing until the share was restarted.

Also fixed:
- the watching tab names the sharer;
- keyframes are counted;
- stats tiles fill the card;
- the voice label stays on one line;
- share settings only offer sizes the source supports;
- the empty exclude heading is hidden;
- software H.264 forces keyframes instead of rebuilding the encoder.

The harness now runs on a private PipeWire with null devices, gets a
second compositor for a third client, and has an audio round-trip
check. edith_codecs now carries the cros-libva fix itself.
✨ feat: add share test harness, fake capture and windows captureAhmet Kaan Gümüş · f550e1a
✨ feat: add share test harness, fake capture and windows capture

A headless niri harness (private D-Bus, own server and clients, wlrctl
and wtype input, grim screenshots) drives the app end to end, and a
YUMUSH_TEST_CAPTURE source feeds a numbered test pattern so frame
progress can be read back from screenshots.

Windows gets screen capture through Windows Graphics Capture and share
audio through WASAPI process loopback that excludes our own process.

Bumps edith_codecs for zero-reorder H.264, patches cros-libva with its
VPP fix, adds an optimized harness profile and shows the playout buffer
instead of a skew-dependent delay.
✨ 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.