Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicit sync causes flickering in games on an Intel Arc A750 GPU #8315

Open
feschber opened this issue Aug 26, 2024 · 5 comments
Open

explicit sync causes flickering in games on an Intel Arc A750 GPU #8315

feschber opened this issue Aug 26, 2024 · 5 comments
Labels
bug Not working as intended

Comments

@feschber
Copy link
Contributor

Please fill out the following:

  • Sway Version:

    • swaymsg -t get_version or sway -v
      sway version 1.10-dev-77b9ddab (Aug 26 2024, branch 'master')
  • Configuration File:

    • default config
  • Description:

    • In game (Counter-Strike 2) there is severe flickering on an Intel Arc A750 system since explicit sync was added.
    • Reverting explicit sync support (05e895c) fixes this issue.

    Interestingly, the flickering does not occur in GNOME, which supposedly also supports explicit-sync, which leads me to believe this might not just be a GPU driver issue.

@feschber feschber added the bug Not working as intended label Aug 26, 2024
@swaywm swaywm deleted a comment Aug 27, 2024
@kennylevinsen
Copy link
Member

While this is most likely a GPU driver bug, it would be useful to have the debug log from a sway run producing the issue (it will tell us about direct scanout), as well as the mesa and kernel version.

At the same time, check if the issue reproduces with the Vulkan renderer (running sway with WLR_RENDERER=vulkan, rather than the gles2 default).

@feschber
Copy link
Contributor Author

feschber commented Sep 4, 2024

WLR_RENDERER=vulkan indeed works without any flickering!

Here is a log with gles2 producing the error and one with vulkan, where no flickering occurs.
Hope this helps!

sway-debug-log-gles2.log
sway-debug-log-vulkan.log

@kennylevinsen
Copy link
Member

Your logs contain a very large number of tearing flip failures. Does the flickering happen with gles2 when tearing isn't enabled?

@feschber
Copy link
Contributor Author

feschber commented Sep 4, 2024

No, still flickering with tearing disabled.

@kanashimia
Copy link

I also had something similar happen on GTX 1050 Ti in other games, but it wasn't consistent and it is Nvidia anyway, probably a different issue.

Vulkan renderer only works because explicit sync support isn't merged yet for it.
You can set WLR_RENDER_NO_EXPLICIT_SYNC=1 to explicitly disable it for gles2 renderer.
With this patch: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4768 you should have same flickering problems happen on vulkan renderer too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

7 participants
@kennylevinsen @feschber @kanashimia and others