perf: stop immersive atmosphere animation while paused
The atmosphere mount in ImmersiveView kept the default animated:true, so the 4-layer warped background forced full-window redraws at display rate even with playback paused. Gate it on NowPlayingState.playing (the other three mount sites already pass animated:false). cc
This commit is contained in:
1 file changed
+2
@@ -1257,6 +1257,8 @@ export component ImmersiveView inherits Rectangle {
|
||||
fallback-image: NowPlayingState.artwork-large.width > 0
|
||||
? NowPlayingState.artwork-large
|
||||
: NowPlayingState.artwork;
|
||||
// Only animate while playing: paused = frozen warp, no display-rate redraws.
|
||||
animated: NowPlayingState.playing;
|
||||
dim: 0.15;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user