wire-desktop icon indicating copy to clipboard operation
wire-desktop copied to clipboard

Wire desktop on Mac is using 30% continuous cpu

Open DrWhax opened this issue 1 year ago • 2 comments

Wire version: 3.35.4861 Operating system: Sonoma 14.3 Which antivirus software do you have installed: None

What steps will reproduce the problem?

  1. Open Wire App on MacOS
  2. Open htop
  3. 30% continuous cpu usage

What is the expected result?

Not burning through my battery due to the 30% CPU continuous usage

What is the actual result?

30% of my cpu cores are doing, something, with Wire, although i;m not entirely sure what.

Please provide any additional information below. Attach a screenshot if possible.

Screenshot 2024-04-14 at 22 58 57

Through profiling using Instruments I see that it's mostly busy in Electron's get_async_id()

Screenshot 2024-04-14 at 23 02 16

--verbose-logging doesn't show useful unfortunately, do let me know what I can do to help debug this further!

DrWhax avatar Apr 14 '24 22:04 DrWhax

I'd still be very interested in seeing this be resolved! :)

DrWhax avatar Jun 25 '24 22:06 DrWhax

Just noticed this as well, on macOS 14.7 (23H124). Reminds me a lot of #2507.

Using --devtools, I was able to narrow the issue down to the subtree of #message-list element in #wire-main-app.
If you remove the transition: width .35s var(--ease-out-quart) property from #message-list and set .message-body to display: none, the high CPU usage disappears entirely. I didn't investigate what in the subtree of .message-body contributes to this.

Siguza avatar Oct 23 '24 05:10 Siguza