High CPU usage #325
Labels
No labels
2230
2243
App version
Apple OS errata
Apple SDK
bug
bugsnag
build
dlt
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: chris/Cog#325
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Oops, it's true, you can't remove any Toolbar items in latest build :(
Sorry about the CUE thing, it shouldn't be locking up when reading invalid files. As for the visualizations processing in the background,
ee5231f567
/066ee806dc
should alleviate that.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.
Ok, looks it works ok now - 4-5% CPU without spectrum, and 12-14% CPU with spectrum. Customizing toolbar works ok now too. Thanks.
I'm getting around 31% CPU usage in M2 MAX
I'm listening to a .ogg file
With mp3 it seems to be 25% initially, then goes to around 30%
Tested with the last nightly. Are there some options that could reduce this high CPU usage issue?
It is not something temporal. It seems to consume 30% of CPU. I have a big list of music. I'm unsure if that would use CPU or just memory.
Edit: oh wow, I just removed the spectum. Now it uses around 9%
Yes, sorry. It comes from the Spectrum. I need to add a frame rate option, because it currently processes at 60 frames per second. I should probably default to like 15 frames per second and make anything other than that configurable.
Also, using the non-3D spectrum won't hit your GPU like the 3D one does. (It hits for about 5-15% for the 60fps, while it's visible)
The CPU usage is entirely from doing the FFT for every frame. I could probably do with calculating FFT less often and using linear interpolation.
I'll try both options, tonight.
Try using the non-3D visualization as well for now. It uses way less CPU. I need to figure out why SceneKit uses so much CPU.