Closes the last open follow-up from #107 — slow-link colour-depth handling.
What it does
VNC sessions on slow connections now surface a non-blocking banner offering a one-tap reconnect at 256 colours:
Slow connection — switch to 256 colours for usable performance? [Switch] [Dismiss]
Switch persists vncColorDepth = BPP_8_INDEXED on the profile, closes the tab, and reconnects at the new depth. Dismiss clears the banner; the suggestion is one-shot per session so it won't keep nagging.
A new global preference in Settings → "Suggest 256 colours on slow VNC links" (default on) silences the banner entirely for users who want manual control.
How it works
- A
CountingInputStreamwraps the (post-handshake, post-TLS) VNC input stream. ThroughputTrackerkeeps a 10-second rolling window of(timestamp, bytesRead)samples.- The client event loop samples once per iteration. After 10 s of data and if measured throughput is sustained < 1 Mbps AND the current colour depth is
BPP_24_TRUE, fires a one-shot suggestion viaVncConfig.onBandwidthSuggestion. DesktopViewModelsurfaces the suggestion as aStateFlowon theDesktopTab.Vnc.DesktopTab.Vncnow retainsoriginalHost / Port / Username / Password + sshForward / sshSessionId / colorDepthso the reconnect path reconstructs the session faithfully without losing tunnel or auth context.
Why suggest, not auto-downshift
Mid-session SetPixelFormat is fiddly with ZRLE / ZLIB because their zlib streams are session-continuous per RFC 6143 §7.7.6 — there's no clean framing marker between in-flight 4-byte pixels and new 1-byte pixels. A reconnect at the new depth is safe and keeps you in explicit control.
What this closes
All of the open items from #107 are now in:
- Click latency / event-driven request loop (v5.24.20)
- Remote cursor rendering, including on the multi-tab Desktop path (v5.24.20 → .25)
- ZRLE encoding (v5.24.20)
- Colour-depth picker in the profile edit dialog (v5.24.26) and the quick-connect dialog (v5.24.27)
- Touchpad input mode with camera-follow (v5.24.26)
- Drag-with-button via tap-then-drag (v5.24.29)
- RDP touchpad parity (v5.24.28)
- Slow-link colour-depth suggestion (this release)
Build artifacts
Signed APKs for arm64 and x86_64 attached. arm64 is the one for phones and tablets.