[Bug]: Api Server Update Rate is lowered significantly if App is behind another Screen filling Programm #3615

Open
opened 2025-07-13 13:11:18 +00:00 by Mint-Shock · 3 comments
Mint-Shock commented 2025-07-13 13:11:18 +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

v3.10.0

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 10 22H2

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Connect to the Api Server and constantly call /api/v1/song and look at "elapsedSeconds": xxx, If yt-Music app is in front of all other windows, it is fine, but if it is behind a maximized window of for example Discord the update rate lowers to like once every 3 Seconds

Expected Behavior

The update Rate stays the same

Actual Behavior

The update rate decreases significantly

Enabled plugins

no age restictions
Abient mode
Api Server
Amuse
Exponential Volume
Exact Volume
In App menu
Navigation
Performance improvements
Sponsor Block
Unobtrusive Player
Blurred menu
Video Quality changer
Video Switcher### Additional Information

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 v3.10.0 ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 10 22H2 ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps Connect to the Api Server and constantly call /api/v1/song and look at "elapsedSeconds": xxx, If yt-Music app is in front of all other windows, it is fine, but if it is behind a maximized window of for example Discord the update rate lowers to like once every 3 Seconds ### Expected Behavior The update Rate stays the same ### Actual Behavior The update rate decreases significantly ### Enabled plugins no age restictions Abient mode Api Server Amuse Exponential Volume Exact Volume In App menu Navigation Performance improvements Sponsor Block Unobtrusive Player Blurred menu Video Quality changer Video Switcher### Additional Information ### Additional Information _No response_
JellyBrick commented 2025-07-13 13:25:55 +00:00 (Migrated from github.com)

Can you reproduce this issue even with "Performance improvements" disabled?

Can you reproduce this issue even with "Performance improvements" disabled?
Mint-Shock commented 2025-07-13 14:02:19 +00:00 (Migrated from github.com)

Nope. I cannot reproduce without "Performance Improvements" (this also fixes the issue if you minimize the YT-Muisc window)
Though i would expect the API Server to still respond as normal if performance Improvements are enabled...

Nope. I cannot reproduce without "Performance Improvements" (this also fixes the issue if you minimize the YT-Muisc window) Though i would expect the API Server to still respond as normal if performance Improvements are enabled...
JellyBrick commented 2025-07-13 14:42:40 +00:00 (Migrated from github.com)

I think this issue is caused by the way "Performance improvements" works (by changing setTimeout and setInterval to depend on the browser’s rendering cycle)

I think this issue is caused by the way "Performance improvements" works (by changing `setTimeout` and `setInterval` to depend on the browser’s rendering cycle)
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#3615
No description provided.