buzz icon indicating copy to clipboard operation
buzz copied to clipboard

fix(desktop): disable backdrop-blur on Linux for perf

Open JoeJoeflyn opened this issue 4 months ago • 2 comments

Summary

Linux WebKitGTK has no GPU-accelerated backdrop-filter. With 16+ backdrop-blur layers visible (header, composer, action bars, thread panel), each frame re-blurs all backdrops in software, blocking the main thread — causing sluggish UI and slow loading. Tag <html> with platform-linux at boot and neutralize backdrop-filter on Linux, falling back to the opaque bg-* colors every blur element already carries.

Related issue

Fixes #3328

Testing

Verified on Arch Linux + Hyprland: app was sluggish with 30 messages in #general. After reload with the fix, UI is responsive. macOS/Windows unaffected (no platform-linux class added).

screenrecording-2026-07-29_20-42-51

JoeJoeflyn avatar Jul 29 '26 13:07 JoeJoeflyn

Thanks for the review! Reused isLinuxPlatform() for #1. For #2, all glass panels have opaque fallbacks, checked on Arch, looks fine.

JoeJoeflyn avatar Jul 30 '26 04:07 JoeJoeflyn

tks, appreciate it

JoeJoeflyn avatar Aug 05 '26 09:08 JoeJoeflyn