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:
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
|
||||
|
||||
Reference in new issue
Block a user