wraith/src/composables
Vantz Stockwell a2770d3edf
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 4m20s
perf: double-buffered RDP frames + frontend rAF throttling
Root cause: RDP was unresponsive due to frame pipeline bottleneck.
- get_frame() held tokio::Mutex while cloning 8.3MB, blocking the
  RDP session thread from writing new frames (mutex contention)
- Frontend fetched on every backend event with no coalescing
- Every GraphicsUpdate emitted an IPC event, flooding the frontend

Fix:
- Double-buffer: back_buffer (tokio::Mutex, write path) and
  front_buffer (std::sync::RwLock, read path) — reads never block writes
- get_frame() now synchronous, reads from front_buffer via RwLock
- Backend throttles frame events to every other GraphicsUpdate
- Frontend coalesces events via requestAnimationFrame
- RdpView props now reactive (computed) for correct resize behavior
- rdp_get_frame command no longer async (no .await needed)
- screenshot_png_base64 no longer async

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 09:19:40 -04:00
..
useKeyboardShortcuts.ts refactor: extract keyboard shortcuts composable + 5 UX bug fixes 2026-03-29 16:53:46 -04:00
useRdp.ts perf: double-buffered RDP frames + frontend rAF throttling 2026-03-30 09:19:40 -04:00
useSftp.ts refactor: Vue 3 state, TypeScript, and lifecycle improvements 2026-03-29 16:53:17 -04:00
useTerminal.ts fix: terminal resize on tab switch + flickering from activity marking 2026-03-26 16:48:43 -04:00
useTransfers.ts feat: Phase 3 complete — SFTP sidebar with full file operations 2026-03-17 15:46:35 -04:00