Disable ambient background animation in visualizer view

Reduces CPU usage by disabling the WebGL ambient motion when
the visualizer tab is active - both are GPU intensive.
This commit is contained in:
vicrodh committed 2026-02-01 15:35:31 -06:00
1 parent 337d4866d6
commit 587e204c7b
1 file changed
+2 -2
@@ -301,8 +301,8 @@
aria-label="Now Playing"
tabindex="-1"
>
<!-- Background -->
<ImmersiveBackground {artwork} />
<!-- Background (disable ambient animation for visualizer to reduce CPU) -->
<ImmersiveBackground {artwork} enableAmbient={activeFocusTab !== 'visualizer'} />
<!-- Header with mode switcher -->
<ImmersiveHeader