[Bug]: Api Server Update Rate is lowered significantly if App is behind another Screen filling Programm #3615
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3615
Loading…
Add table
Add a link
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?
Preflight Checklist
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
Additional Information
No response
Can you reproduce this issue even with "Performance improvements" disabled?
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...
I think this issue is caused by the way "Performance improvements" works (by changing
setTimeout
andsetInterval
to depend on the browser’s rendering cycle)