Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

feat: Expose ShowDeviceSwitchNotification in web settings and optimize peak meter dispatch

last month

b21aa09
Authored
xammen8/23/2026, 2:33:21 PM
- Add ShowDeviceSwitchNotification handler in WebSettingsWindow
- Serialize ShowDeviceSwitchNotification to web UI state
- Optimize PeakMeterTimer_Elapsed with CheckAccess before dispatching
- Use InvokeAsync instead of BeginInvoke for better performance

Performance improvements:
- Avoid unnecessary dispatcher invocation when already on UI thread
- Reduced overhead in high-frequency peak meter updates (30-60 FPS)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Parent3038c2c

2 files changed
  • EarTrumpet/UI/ViewModels/DeviceCollectionViewModel.cs+12−2
  • EarTrumpet/UI/Views/WebSettingsWindow.xaml.cs+4−0