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.88k stars 500 forks source link

[Bug]: FPS Lock/Drop when having the App run in background while playing games #1803

Closed SleepDaemon closed 1 month ago

SleepDaemon commented 8 months ago

Preflight Checklist

YouTube Music (Application) Version

3.3.2

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 Version 23H2 OS Build 22631.3155

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Just have the app running in the background while running a game, for me in Rainbow Six Siege or in any game where I get 144fps.

Expected Behavior

Shouldn't lock or drop FPS while running in background

Actual Behavior

It gets locked to 100fps but after closing the app it is 144fps.

Enabled plugins

image image

Additional Information

No response

SleepDaemon commented 8 months ago

Been having this issue probably since v3.0 or less, I am not sure since I always assume it was something with the computer itself.

frostybiscuit commented 7 months ago

Can you still reproduce this issue when you disable all plugins? Also, have you tried disabling hardware acceleration to see if it still happens then? (Options -> Advanced -> Disable hardware acceleration)

SurajBhari commented 7 months ago

I can reproduce this bug @JellyBrick can you reopen this issue

I tried disabling all the plugins. still same disabled hardware acceleration

it only happens when i connect my bluetooth speaker. on laptop speaker it works fine.

JellyBrick commented 7 months ago

I think it's a bug in the Windows.

SleepDaemon commented 7 months ago

I think it's a bug in the Windows.

cant be, cause it only ever happens with this App. Other electron based applications dont cause this. Also I get this om wired as well.

JellyBrick commented 7 months ago

What is the specifications of your PC?

@SleepDaemon @SurajBhari

And, can you provide the reproduction steps?

I can't reproduce it in RX6600+R5600, and RTX4080+R7800X3D (Windows 11)

And what are the "other electron based applications"?

SleepDaemon commented 7 months ago

What is the specifications of your PC?

@SleepDaemon @SurajBhari

And, can you provide the reproduction steps?

I can't reproduce it in RX6600+R5600, and RTX4080+R7800X3D

I have Intel i7 6c 12t (will need to get on my laptop later for exact model number) and GTX 1660 to wit 32gb ram.

As for steps just have the app open in background running. While playing a game.

SurajBhari commented 7 months ago

Am on a laptop r7 5800h. Rtx 3060. 16gig ram.

JellyBrick commented 7 months ago

As for steps just have the app open in background running. While playing a game.

Can you reproduce it on https://music.youtube.com? (with Chrome)

@SleepDaemon

SleepDaemon commented 7 months ago

As for steps just have the app open in background running. While playing a game.

Can you reproduce it on https://music.youtube.com? (with Chrome)

@SleepDaemon

I don't get on browsers

frostybiscuit commented 7 months ago

I will try to reproduce this at home, but I've been gaming next to YT music and had no lags so far. I would assume this is either a Windows task priorization or laptop energy control issue.

@SleepDaemon @SurajBhari What game were you playing and what power profile were you on? Also is YT music running on the dedicated GPU or on the integrated one?

SurajBhari commented 7 months ago

As for the game its f1 22 for me. And no it doesn't happen same with browser (edge). For me it's only doing this on bluetooth speakers. And not on laptop speakers.

SleepDaemon commented 7 months ago

I will try to reproduce this at home, but I've been gaming next to YT music and had no lags so far. I would assume this is either a Windows task priorization or laptop energy control issue.

@SleepDaemon @SurajBhari What game were you playing and what power profile were you on? Also is YT music running on the dedicated GPU or on the integrated one?

I get it on Siege, I have hardware acceleration enabled i think. My CPU is Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2.59 GHz

frostybiscuit commented 7 months ago

I get it on Siege, I have hardware acceleration enabled i think. My CPU is Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2.59 GHz

I tried reproducing this with a couple of games like AC:Valhalla, Starfield, Cyberpunk 2077, GTA 5 and a few other, but nothing noticable. I also had them fully cranked up so my GPU is at 100% utilization but to no avail. I'm running it on Win11 with an RTX3080 and an i712700K. Am I right to assume that both of you are running it on a laptop?

To me this still sounds like YT Music is running through the iGPU which is lowered to a minimum when the dedicated GPU is being used. Could you check what GPU it is running on for you? You can check that by opening the task manager and enabling "GPU engine" by right-clicking any of the column headers and it should look like this: image

SleepDaemon commented 7 months ago

I get it on Siege, I have hardware acceleration enabled i think. My CPU is Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2.59 GHz

I tried reproducing this with a couple of games like AC:Valhalla, Starfield, Cyberpunk 2077, GTA 5 and a few other, but nothing noticable. I also had them fully cranked up so my GPU is at 100% utilization but to no avail. I'm running it on Win11 with an RTX3080 and an i712700K. Am I right to assume that both of you are running it on a laptop?

To me this still sounds like YT Music is running through the iGPU which is lowered to a minimum when the dedicated GPU is being used. Could you check what GPU it is running on for you? You can check that by opening the task manager and enabling "GPU engine" by right-clicking any of the column headers and it should look like this: image

It's running on my dedicated GPU, not iGPU

frostybiscuit commented 6 months ago

@SleepDaemon Did you check if the CPU or GPU are at 100% when this happens? Like, are you using an FPS lock in your games or do you just let them use as much as possible?

I'm honestly running out of ideas here 🙈

SleepDaemon commented 6 months ago

@SleepDaemon Did you check if the CPU or GPU are at 100% when this happens? Like, are you using an FPS lock in your games or do you just let them use as much as possible?

I'm honestly running out of ideas here 🙈

I said what I experience and discovered, I'll try out today running Siege with the app. If I still get the issue just with this app and nothing I will let you know.