th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.25k stars 485 forks source link

[Bug]: Youtube music having 50% cpu usage, when it used to be 4-5% #1807

Open supertrio17 opened 7 months ago

supertrio17 commented 7 months ago

Preflight Checklist

YouTube Music (Application) Version

3.3.2.0

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro 23H2

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

Few versions back, don't know which one

Reproduction steps

Starting the app seems to be okay cpu usage wise, I don't remember being this many processes, and it seems that sometimes the app will work fine even if i close the process that is taking 40-50% of cpu. Issue begins when something else is taking up some cpu space, for example when starting a game, the cpu usage of the yt music will spike to 40-50%

image

Expected Behavior

Around 5% cpu usage

Actual Behavior

50% cpu usage

Enabled plugins

AdBlocker, Precise Volume, Shortcuts, Video toggle and Visualizer.

Additional Information

No response

supertrio17 commented 7 months ago

image

supertrio17 commented 7 months ago

Hmm, I was going on around different options, and I seem to have found a temp solution. When I have tray set as 'Enabled and hide app' bug occurs, I tried changing it to 'Enabled and show app' and it seems to have worked. Now overall processes are chilling around 1-2 % with highest being around 10 %.

image

PS: I aslo enabled Exponentional Volume so that might have been the fix, I'm not sure.

supertrio17 commented 7 months ago

@JellyBrick Hey, I was wrong, seems it has to be something with visualizer plugin, I have the plugin enabled, even tho I have video disabled. I confirmed it.

This is with visualizer on: image

This is with visualizer plugin disabled: image

PS: Keep in mind that cpu usage is normal when the app is in the background, but I have it open on my second monitor while gaming. I'm not sure if this is expected behaviour, I have i7-8700k so it shouldn't use over 10% even if I have visualizer plugin enabled, yet its utilizing over 50% of cpu.

JellyBrick commented 7 months ago

@supertrio17 Which type of visualizer are you using?

supertrio17 commented 7 months ago

@supertrio17 Which type of visualizer are you using?

I had butterchurn enabled, but like I said, I never saw it because my video is always disabled.