desktop: The media animation causes high CPU usage

Captchas

  • I have read the instructions.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.
  • I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

The new media player sidebar music notes animation causes high CPU usage.

This is with the sidebar and the animation:

Image

This is by hovering on it, showing the full-size controls hiding the animation:

Image

This is with manually hiding the item using the browser shell devtools (unchecking contents on the styling tab):

Image

Version

1.10.2b

What platform are you seeing the problem on?

Linux (Tarball)

What component is this issue related to?

Media Controler

Relevant log output if applicable


About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 5
  • Comments: 18 (2 by maintainers)

Most upvoted comments

I ended up using custom CSS to hide the animation, as the miniplayer is actually really helpful and was a feature I was missing so much I started building it on my own just before it released officially.

Here’s the relevant part of the code:

#zen-media-controls-toolbar {
  & #zen-media-focus-button::after {
    display: none !important;
  }
]

Wow, CPU usage dropped by 60% and GPU by 20% to zero. Its like nothing would play, yet the miniplayer is still there. Thank you very much!

I don’t know why the RAM usage issues all get closed and marked as duplicate of this issue. The issue seems not to be the same to me. RAM issue

Hi, @busybox11. I’m Dosu, and I’m helping the desktop team manage their backlog. I’m marking this issue as stale.

Issue Summary:

  • High CPU usage due to the media player sidebar’s music notes animation in version 1.10.2b on Linux.
  • Issue persists even after removing mods and custom CSS.
  • @charamza and others confirmed similar issues; a custom CSS solution by you helped reduce CPU/GPU usage.
  • @notherealmarco found disabling media controls entirely was the only effective solution.
  • Clarified that the issue is not related to RAM usage.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the desktop repository. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

Thanks for the userChrome.css snippet @busybox11. Besides finding the animation distracting, I also saw the CPU usage increase from around 12% to >80% on MacOS.

Oh, I did not see this mention.

Indeed it does not seem like a duplicate. This doesn’t have anything to do with RAM. My usage here doesn’t match your issue either.