Cog icon indicating copy to clipboard operation
Cog copied to clipboard

High CPU usage

Open LennyLip opened this issue 3 years ago • 8 comments

I noticed that the last version is used from 20 to 30% CPU (of M1). And 10-20% CPU when COG is hide. Other players use 5% CPU in foreground mode.

  1. How can I disable spectrum? (can't do it with d'n'd editor)
  2. How I can reduce CPU usage to 5%?

LennyLip avatar Aug 24 '22 14:08 LennyLip

Oops, it's true, you can't remove any Toolbar items in latest build :(

nevack avatar Aug 24 '22 16:08 nevack

Screenshot 2022-08-26 at 14 53 58 :) result of reading incorrect CUE.

LennyLip avatar Aug 26 '22 11:08 LennyLip

Sorry about the CUE thing, it shouldn't be locking up when reading invalid files. As for the visualizations processing in the background, ee5231f567a354e9320ae1432695a30cea9de9c7 / 066ee806dca273a1bfe371ad86a58b13c27ab4f2 should alleviate that.

kode54 avatar Oct 16 '22 06:10 kode54

It should process CUEs faster, but I don't know what to do about that, since embedded formats need to read full tags every track.

As for spectrum, remove it from the toolbar with the customize toolbar mode, or hide the window somehow (obscure it, or minimize it, or close it and summon it again later) and the visualization will stop processing most of its work. Apparently most of the processing power comes from the inflexible forced 60fps updating SceneKit display. I should add a configurable frame rate, and maybe separate frame rate for the larger window mode, and default them to like 15fps like most other players do.

kode54 avatar Oct 09 '23 00:10 kode54

Ok, looks it works ok now - 4-5% CPU without spectrum, and 12-14% CPU with spectrum. Customizing toolbar works ok now too. Thanks.

LennyLip avatar Oct 12 '23 15:10 LennyLip