Skip to content

fix(web): rate the connection dot from the wire - #64

Merged
enricobuehler merged 2 commits into
mainfrom
fix/web-quality-dot
Oct 30, 2026
Merged

enricobuehler merged 2 commits into
mainfrom
fix/web-quality-dot

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Design: web-client-tcp-bridge.md §6 (decision D11).

The dot divided presentation skips by decoded frames and read poor on nearly every 60 fps stream. It now shows core's hud::quality verdict, computed in pf_hud_drain from the window's lost frames, FEC repairs and round trip (worst of the last three windows), read by the engine as SessionStats.quality through the new _pf_hud_quality export. Presentation skips stay in the overlay's skipped line.

Pin note. This builds against monorepo branch fix/client-quality-rule (local, unpushed). The punktfunk-core pin in packages/stream/Cargo.toml must be bumped to a rev that includes it before this merges, so CI's wasm job fails until then.

Checked locally against that branch through a path patch (not committed): npm test (60 + 4 pass), npm run check, cargo fmt --check, cargo clippy (host and wasm, -D warnings), cargo test (19 pass), build.sh links.

enricobuehler added 2 commits October 30, 2026 18:24
The dot divided presentation skips by decoded frames, and two decoded
frames between two animation frames is routine, so it read poor on
nearly every 60 fps stream.

The rule now comes from core (`hud::quality`) on the wire's facts: lost
frames, FEC repairs and round trip, worst of the last three windows.
Skips stay in the overlay's skipped line.
The rev is punktfunk main at eb990a68. It carries #2214 (`hud::quality`,
which the dot reads) and #2213 (`abr::feed` with an exported
`stream_ceiling_kbps`). The server follows the same rev.
@enricobuehler
enricobuehler marked this pull request as ready for review October 30, 2026 17:26
@enricobuehler
enricobuehler merged commit c766109 into main Oct 30, 2026
6 checks passed
@enricobuehler
enricobuehler deleted the fix/web-quality-dot branch October 30, 2026 17:28
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