Skip to content

Mute sound button in every viewer; links moved to Bitfaring - #162

Open
manhpham90vn wants to merge 3 commits into
mainfrom
bitfaring-move-and-mute
Open

manhpham90vn wants to merge 3 commits into
mainfrom
bitfaring-move-and-mute

Conversation

@manhpham90vn

Copy link
Copy Markdown
Collaborator

Two commits:

  1. chore: point every link at github.com/Bitfaring/Deskhub: README, docs (all four languages), PRIVACY/SECURITY, store metadata, packaging, scripts and kProjectUrl now use Bitfaring/Deskhub. The Homebrew tap becomes bitfaring/tap, the fastlane match repo becomes Bitfaring/certificate, and the apt repository moves to bitfaring.github.io, because Pages does not redirect after a transfer. The release notes for 9.4.0 tell apt users how to re-add the source.
  2. feat: add a Mute sound button to every viewer (closes [FEATURE_REQUEST] Mute button #161): AudioPlayer keeps decoding but writes silence while muted, so unmuting is instant and stays in sync. core gains AudioMuteState with tests. The button appears whenever the viewer plays sound (T-23): next to Show my cursor on Windows and Linux, in the macOS button bar, and in the session controls on Android and iOS. Mute survives a switch to another display. SPECIFICATION V-11 is added in all four languages.

Testing

  • core_tests: all pass, including the new [mute] checks
  • clang++ -fsyntax-only on AudioPlayer.cpp, ClientFfi.cpp, ScreenFfiApple.mm
  • clang-format, SwiftFormat and SwiftLint --strict: clean
  • Not run locally: the full make test / make test-all (no cargo), ktlint/detekt (no Java), cppcheck dead-code, and the Windows / Linux / Android / iOS builds. CI covers these.

The repository, the Homebrew tap and the match certificates repository moved to the
Bitfaring organization. GitHub redirects the old repository links, but the Pages site
does not follow a transfer, so the apt repository now lives at bitfaring.github.io.
@github-actions

Copy link
Copy Markdown
Contributor

Perf and lag report - pull request vs base commit, same runner, 50% tolerance

  • core_perf: 37 rows · biggest slowdown video/reassemble-scaling +5.4% · biggest speedup wire/build-video-packet -15.2% · 0 beyond budget
  • platform_perf: 6 rows · biggest slowdown quic/poll-idle +0.0% · biggest speedup quic/stream-throughput-64k -6.9% · 0 beyond budget
  • coverage: core lines 96.52% (min 90.00%) branches 87.52% (min 80.00%)
core_perf drift
=== core performance suite (offline: no network, no GPU) ===
release build only - debug and sanitizer numbers say nothing about production speed
baseline: /home/runner/work/_temp/base-core.txt (37 measurements, tolerance 50%)

workload                               cost per unit           throughput     allocations            vs baseline

--- video ---
video/packetize                               2506 ns/frame      47880.3 MB/s    0.00 alloc/frame       -0.2%
video/packetize-with-fec                      6011 ns/frame      19962.2 MB/s    0.00 alloc/frame       +1.7%
video/reassemble-in-order                    130.0 ns/packet      8960.6 MB/s    1.03 alloc/packet      +0.6%
video/reassemble-out-of-order                132.0 ns/packet      8823.7 MB/s    1.03 alloc/packet      +0.4%
video/reassemble-fec-recovery                714.0 ns/packet      1631.8 MB/s    1.29 alloc/packet      -1.4%
video/plan-nack                               5906 ns/plan                      54.00 alloc/plan        +1.1%
video/downscale-1080p-to-720p              7239447 ns/frame       1145.7 MB/s    0.00 alloc/frame       -0.5%
video/frame-mailbox-handoff                   21.4 ns/frame                      0.00 alloc/frame       -0.1%
video/packetize-scaling                       21.4 ns/KB         4.0x work ->  3.96x time    -1.4%
video/reassemble-scaling                     13930 ns/frame      4.0x work ->  4.00x time    +5.4%

--- transfer ---
transfer/crc32-streamed                     162898 ns/chunk        402.3 MB/s    0.00 alloc/chunk       -0.1%
transfer/send-and-receive                    82858 ns/chunk        197.0 MB/s    0.02 alloc/chunk       -0.6%
transfer/send-and-receive-scaling            83176 ns/chunk      4.0x work ->  3.98x time    -0.4%

--- terminal ---
terminal/vt-parse-plain                      16675 ns/KB            61.4 MB/s    0.00 alloc/KB          -7.1%
terminal/vt-parse-coloured                   13810 ns/KB            74.1 MB/s    0.00 alloc/KB          -8.5%
terminal/screen-write-80x24                  31212 ns/KB            32.8 MB/s    1.22 alloc/KB          -0.8%
terminal/screen-write-200x50                 28025 ns/KB            36.5 MB/s    0.69 alloc/KB          +3.9%
terminal/snapshot-200x50                     22224 ns/snapshot                   1.00 alloc/snapshot    +0.2%
terminal/render-200x50                       81921 ns/render                    10.00 alloc/render      +0.4%
terminal/screen-write-scaling                27571 ns/KB         4.0x work ->  4.47x time    -2.2%
terminal/scrollback-scaling                  27238 ns/KB         4.0x work ->  4.32x time    -0.1%

--- wire, audio and control ---
wire/build-video-packet                       19.7 ns/packet     60855.4 MB/s    0.00 alloc/packet     -15.2%
wire/parse-video-packet                       18.2 ns/packet     65922.8 MB/s    0.00 alloc/packet      -1.6%
wire/build-parse-input-events                 18.1 ns/event       1081.1 MB/s    0.00 alloc/event       +0.2%
audio/jitter-buffer-push-pop                  52.4 ns/frame       1527.4 MB/s    2.00 alloc/frame       -0.1%
transport/retransmit-cache                    69.4 ns/packet     17263.3 MB/s    0.03 alloc/packet      -4.7%
control/video-pacer                          6.526 ns/frame                      0.00 alloc/frame      -12.5%
audio/jitter-buffer-scaling                   48.0 ns/frame      4.0x work ->  3.99x time    -0.6%

--- audio playback ring ---
audio/pcm-ring-put-take                      13099 ns/frame        293.2 MB/s    0.00 alloc/frame       +0.1%
audio/pcm-ring-overflow-drop                  6561 ns/frame        585.3 MB/s    0.00 alloc/frame       -0.0%
audio/pcm-ring-scaling                       13085 ns/frame      4.0x work ->  4.00x time    -0.0%

--- input path (queue -> wire -> apply) ---
input/mouse-move-round-trip                   53.6 ns/event                      0.08 alloc/event       +4.7%
input/key-tap-round-trip                     681.9 ns/tap                        0.00 alloc/tap         -0.0%
input/mouse-move-scaling                      53.5 ns/event      4.0x work ->  3.97x time    +4.8%

--- record stream (terminal + transfer framing) ---
stream/terminal-records-64k                   26.0 ns/record     19788.4 MB/s    0.00 alloc/record      +1.0%
stream/bulk-records-64k                      685.2 ns/record     23913.1 MB/s    0.00 alloc/record      +2.7%
stream/record-drain-scaling                   53.2 ns/KB         4.0x work ->  4.12x time    +1.8%

=== PASS: 37 measurements within budget ===
platform_perf drift
=== platform performance suite (loopback sockets, real QUIC) ===
release build only - debug and sanitizer numbers say nothing about production speed
baseline: /home/runner/work/_temp/base-platform.txt (6 measurements, tolerance 50%)

workload                               cost per unit           throughput     allocations            vs baseline

--- quic over loopback ---
quic/handshake                            20764389 ns/handshake                  85.00 alloc/handshake    -0.2%
quic/terminal-record-delivery                23524 ns/record        21.8 MB/s    9.00 alloc/record      -3.2%
quic/stream-throughput-64k                    7866 ns/KB           130.2 MB/s    1.17 alloc/KB          -6.9%
quic/datagram-delivery                       10062 ns/datagram     119.3 MB/s    1.44 alloc/datagram    -6.4%
quic/poll-idle                             1057568 ns/poll                       3.00 alloc/poll        -0.0%
quic/stream-drain-scaling                     8146 ns/KB         4.0x work ->  1.33x time    -3.5%

=== PASS: 6 measurements within budget ===
lag under cross-load (this pull request only)
[load] a 32 MB upload rides alongside the video without stalling it...
        idle 27.9 fps (worst gap 20 ms) -> busy 28.1 fps (worst gap 20 ms), 32 MB in 1705 ms, deepest file lane 1
[load] keystrokes still reach the host with an upload in flight...
        five events injected 8 ms after they were queued
[load] audio keeps arriving with an upload in flight...
[load] skipped: this machine opened no audio output device
[lag] a terminal flood rides alongside the video without stalling it...
        flood moved 1359063 terminal bytes/redraws, video 27.9 -> 28.4 fps, worst video gap 20 ms, worst terminal gap 0 ms
[lag] a keystroke's echo crosses a bulk-flooded link promptly...
        the shell answered 4 ms after the keystrokes

This branch has not been deployed

No deployments
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.

[FEATURE_REQUEST] Mute button

1 participant