FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.39k stars 827 forks source link

[Bug]: GPU load in background #4734

Closed riverpiers closed 7 months ago

riverpiers commented 7 months ago

Guidelines

Describe the bug

When the window is minimized there is still GPU processing, where in such a situation e.g. in a web browser there is no background image processing. [Edit]: Occurs when 2 program windows are minimized, regardless of whether the second is video or "empty" without video, such as a settings tab or a new window (ctrl+n). [Edit2]: More details: 1. The order of the windows does not matter and whether it is the default tab(subscriptions) of the new window (ctrl+n), 2. It seems that the problem is only with 50/60fps video, even though the video is minimized. GPU activity remains 10+%.

Expected Behavior

No GPU usage when the window is minimized and I am only listening to audio.

Issue Labels

usability issue

FreeTube Version

v0.19.2 Beta

Operating System Version

Windows 10 (19045)

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

v0.19.2 Beta

Additional Information

I don't know if the situation occurred in the previous version.

Nightly Build

efb4f5ff-1298-471a-8973-3d47447115dc commented 7 months ago

This isn't a bug but expected behavior as something like this isn't implemented, duplicate of https://github.com/FreeTubeApp/FreeTube/issues/1405

riverpiers commented 7 months ago

Further info: When I go lower with the resolution, e.g. 720p, the background GPU usage decreases, but still occurs ~5%, with 50/60fps video. Interestingly, with video without the 50/60fps option, when I go down to the same resolution, i.e. 720p, the GPU usage is 0% with the window minimized/background video. Ok. duplicate..

Edit: 24.3.24: I wanted to say that this option does exist after all: you can do it with multimedia control function keys when the video is minimized. And in the program, in the settings, you set the file formats to audio; it doesn't require resetting the program, and you can do it separately for each window before the video is played. It's quick to use the shortcut: ctrl + ,

Or you just toggle audio/video in the window from the icon under the number of video views, quick access to the options from the settings as a choice of whether the GPU should be active in the background. This option is confusing as an extra option, and you think "I want video by default, and audio is the exception" and it seems to be an option when downloading files, and yes actually it is an option for on/off GPU. Especially when you try these options and "nothing happens" before pressing playback, and you consider a quick refresh of the window as a detail and ignore it....