FreeTubeApp / FreeTube

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

[Bug]: Mild flickering effect present on screen when in full-screen (wayland) #3664

Closed bravemenrun closed 1 year ago

bravemenrun commented 1 year ago

Guidelines

Describe the bug

When playing videos in full-screen a mild flickering effect is present on screen. It is very noticeable on dark and/or static images but is always present. The flickering is very distracting, especially with videos that display static or dark images. The bug appears in the latest stable and nightly release of FreeTube. So far I have tried the Flatpak, AppImage, and AUR build of FreeTube linked here.

Expected Behavior

I would expect that the video plays without this flickering effect.

Issue Labels

visual bug

FreeTube Version

v0.18.0 Beta

Operating System Version

EndeavourOS Linux x86_64

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

I am using EndeavourOS with the KDE desktop environment. I am using Wayland as well. I am not sure if this issue is present in X11.

Nightly Build

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Hi @bravemenrun this could be an issue with the settings of your graphics card.

Try https://github.com/FreeTubeApp/FreeTube/issues/2235#issuecomment-1133918031 if u have a nvidea card.

bravemenrun commented 1 year ago

I considered the possibility, however I am using an AMD card with the open source amdgpu driver.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Are u running the latest drivers?

bravemenrun commented 1 year ago

Yes, my system is fully up to date with the latest drivers installed.

bravemenrun commented 1 year ago

Upon further testing the issue is only present on Wayland. FreeTube functions as it should on X11.

absidue commented 1 year ago

Are you adding any extra flags to force enable hardware acceleration? If yes, those are likely the problem.

bravemenrun commented 1 year ago

Are you adding any extra flags to force enable hardware acceleration? If yes, those are likely the problem.

I don't believe I added any flags. How might I confirm that? Also, I found out the issue disappears when I disable variable refresh rate in KDE settings.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

sounds like electron doesn't like variable refresh rate stuff in wayland. Closing as this is out of our control and u solved the issue yourself.

aAsm321 commented 5 months ago

I can confirm that disabling variable refresh rate in adrelanine works. However, if you want to keep using variable refresh rate for other apps, follow these steps.

  1. Open AMD software: adrenaline editon
  2. Add freetube as a game image
  3. disable AMD FreeSync image