Reloaded-Project / Reloaded-II

Universal .NET Core Powered Modding Framework for any Native Game X86, X64.
GNU General Public License v3.0
608 stars 82 forks source link

[Linux] Flicker issue #336

Open svin24 opened 8 months ago

svin24 commented 8 months ago

Describe the Bug There is constant flickering under linux. WARNING if you are sensitive to flickering like do not watch the video.

Screencast_20240312_192733.webm

To Reproduce Steps to reproduce the behaviour:

  1. Use protontricks to set up and run the application
  2. Notice the application flickers, I think mostly on updates

Expected Behaviour Doesn't flicker

Additional Context I am using Fedora Linux with KDE and Wayland. I also tried it with gamescope using the command

gamescope -- protontricks-launch ./Reload-II.exe

This could probably be an issue with upsteam but i decided to report here first just in case.

Sewer56 commented 8 months ago

I can confirm this exists.

As the dev, I experience this myself on Hyprland. When two windows overlap, and one window is updated (e.g. displaying a progress bar), the focus between the two windows is quickly swapped.

I'm not sure of the cause per se, especially as I don't remember this happening in X11 in the past (I'd need to re-confirm), but I do acknowledge this at least happens in some Wayland environments under Wine

Sewer56 commented 5 months ago

Actually, I think this may be caused by the window blur effect on focus/unfocus. I should maybe disable that on Wine by default, since it's expected that your window manager will provide its own custom decoration.

Sewer56 commented 1 month ago

This is slightly improved by 92e7dc5f1677216ef7e782f4c0abb836c7721671 with disabling client side decorations. Still a Wine issue however.