Cog icon indicating copy to clipboard operation
Cog copied to clipboard

High Energy Impact

Open ysmolski opened this issue 3 years ago • 5 comments

High Energy impact when playing mp3 streams or mp3 in general. It grows gradually from 8-10 energy usage in the first 15 minutes to 20.0+ in next 15 minutes and then 30+ after that.

I use Earpods Pro and noticed if I remove them, playing stops, energy goes to ~5.0 and if I put them on again it suddenly goes from 8-10 before to ~15-16.

Before that I was using it on Intel CPU (10.14.X) and there was no such issues. If I run the same mp3 streams on VLC, energy impact is around 7-8 constantly.

I can provide debug info if needed. Just let me know. Thanks

Version information:*

  • macOS version: 12.5.1, MBP M1 Pro.
  • Cog version: 2687 (2687-g9a7ecd98)

ysmolski avatar Sep 02 '22 13:09 ysmolski

Turn off positional audio in the menu that opens from the AirPods icon on the menu bar.

kode54 avatar Sep 02 '22 23:09 kode54

It was turned off before as the first thing. Screenshot 2022-09-03 at 10 25 20

I am trying to listen to Cog without AirPods and energy usage is high too. ~17-20

Is there a way I can profile it somehow on my machine?

ysmolski avatar Sep 03 '22 08:09 ysmolski

Install Xcode, run the Instruments app, run the Timing module against Cog and only Cog. Probably not very helpful, though.

kode54 avatar Sep 03 '22 08:09 kode54

Please try the new release once binaries are pushed. ee5231f567a354e9320ae1432695a30cea9de9c7 / 066ee806dca273a1bfe371ad86a58b13c27ab4f2 should alleviate some of the CPU usage when the window is not visible, if the visualization toolbar item or visualization popup are currently open but the window is obscured.

kode54 avatar Oct 16 '22 06:10 kode54

Remove the visualization from the toolbar, or hide the window, and processing usage will drop significantly. Yes, apparently a lot of processing power is used up by having a 60fps SceneKit object just hanging out there in the window. I could also make the frame rate configurable and default it to something like 15fps like most other players do, while making the windowed one use a different frame rate as well. Frame rates are fully flexible.

kode54 avatar Oct 09 '23 00:10 kode54