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

Closed
opened 2024-02-27 16:19:13 +00:00 by SleepDaemon · 17 comments
SleepDaemon commented 2024-02-27 16:19:13 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.3.2

Checklists

  • I use the portable version of the YouTube Music Application.
  • I can reproduce this issue in the official YTM web version.

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

### Preflight Checklist - [X] I use the latest version of YouTube Music (Application). - [X] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [X] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.3.2 ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [X] I can reproduce this issue in the [official YTM web version](https://music.youtube.com). ### 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](https://github.com/th-ch/youtube-music/assets/88533953/16b9c7ab-51b4-41d6-9d13-d0e6dd7ffad5) ![image](https://github.com/th-ch/youtube-music/assets/88533953/fbb1faee-35c5-4cbe-9085-1c2cc0b0cd07) ### Additional Information _No response_
SleepDaemon commented 2024-02-27 16:20:07 +00:00 (Migrated from github.com)

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.

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 2024-03-16 15:10:30 +00:00 (Migrated from github.com)

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)

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 2024-04-05 11:16:26 +00:00 (Migrated from github.com)

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.

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 2024-04-05 14:15:19 +00:00 (Migrated from github.com)

I think it's a bug in the Windows.

I think it's a bug in the Windows.
SleepDaemon commented 2024-04-05 14:19:53 +00:00 (Migrated from github.com)

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.

> 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 2024-04-05 14:47:39 +00:00 (Migrated from github.com)

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"?

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 2024-04-05 14:50:43 +00:00 (Migrated from github.com)

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.

> 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 2024-04-05 14:59:53 +00:00 (Migrated from github.com)

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

Am on a laptop r7 5800h. Rtx 3060. 16gig ram.
JellyBrick commented 2024-04-05 15:01:56 +00:00 (Migrated from github.com)

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

> 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 2024-04-05 15:28:12 +00:00 (Migrated from github.com)

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

> > 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 2024-04-05 15:45:44 +00:00 (Migrated from github.com)

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 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 2024-04-05 15:48:33 +00:00 (Migrated from github.com)

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.

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 2024-04-11 12:08:38 +00:00 (Migrated from github.com)

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

> 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 2024-04-12 15:08:49 +00:00 (Migrated from github.com)

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

> 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](https://github.com/th-ch/youtube-music/assets/128132341/063ef1c5-f294-4aab-aac4-2e63fc452bae)
SleepDaemon commented 2024-04-12 15:44:43 +00:00 (Migrated from github.com)

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

> > 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](https://github.com/th-ch/youtube-music/assets/128132341/063ef1c5-f294-4aab-aac4-2e63fc452bae) > > It's running on my dedicated GPU, not iGPU
frostybiscuit commented 2024-04-16 06:23:49 +00:00 (Migrated from github.com)

@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 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 2024-04-18 07:49:01 +00:00 (Migrated from github.com)

@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.

> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#1803
No description provided.