-
Notifications
You must be signed in to change notification settings - Fork 17
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
Strange visual error on Wayland (e.g. with Anno 2070, Dirt4 and others) #32
Comments
Hi! Thanks for the feedback and it's good to also hear from games where everything just works fine :). It's strange how all displayed text is not affected by the visual distortion. Are the artifacts static or are they moving? Could you provide output of Primus_vk does not compress not does it re-encode the image (so if these are compression artifacts they must come from somewhere else). The image is transmitted as a raw chunk of memory (of widthheight4 bytes) from the dedicated GPU to main memory. |
Looking with more atention, it looks like the artifacts are from previous frames and, for some reason, they are kept in the screen. I had this problem with two games until now: native Dirt4 and Anno2070 with dxvk. I uploaded two videos to you have a good idea what's going on. The vulkaninfo and the stdout of Dirt4 can be found in this gist |
Important update about the problem: it only appear in Wayland session. With xorg session everything is fine. Also, in wayland everything show theses glitches. All demos from https://github.com/SaschaWillems/Vulkan show glitches in Wayland. |
primus_vk does not clear the buffer images between presentations. I created an experimental branch clears the images before handing them back to the application: https://github.com/felixdoerre/primus_vk/tree/test_clear_images Could you try if the artifacts are still present with this change? (I don't know how Wayland vs xorg could make a difference here, but who knows). |
I tested again with this branch and the problem remains. |
I've got another test branch for you: https://github.com/felixdoerre/primus_vk/tree/overlay |
@Nikki1993 are you also running the game in a Wayland session? |
yep, swaywm |
here is mine using Lenovo X1E that has iGPU intel 630 and GTX 1050ti max q
|
also not sure if related but I am getting extremely low fps (< 30) vs running wined3d which fluctuates between 40 - 70 fps |
do you experience the same issue when using the intel drivers to render (i.e. running the game without |
@felixdoerre nope, no artifacts of course, the game is barely running at 40 fps, but surprisingly higher than primus vk with dxvk, at least if steam fps overlay to be believed |
Could you test https://github.com/felixdoerre/primus_vk/tree/test_membarrier for me and check if the problem persists? |
trying to do local build following readme, cloned repo and added few dev packages for vulkan (running arch), followed arch specific mods to be done and now trying to compile with make and hit with this
|
are these the correct changes? EDIT: apparently, need to downgrade packages to build, https://aur.archlinux.org/packages/primus-vk-git/ I will see to it tomorrow and try to get the build running |
Yes, those changes are correct. The build error looks like a version mismatch between your Thanks for trying this out! |
ok, I managed to downgrade the package by running
at which point all compiled well, I am not entirely sure I correctly cloned via PKGBUILD (mainly because I've never compiled stuff before on arch, I confess total noob here) so if you could tell me have I done the correct changes, I used primus_vk_git from AUR and modified the build I only edited primus_vk.git#branch=test_membarrier to add the branch
Installed with |
Dang! Anyway, thank you very much for testing! |
well if you have more stuff to test just lemme know :) |
I've just pushed a few more commits resolving some vulkan validation errors. Maybe those help? Could you test them? |
@felixdoerre to the same branch I presume? |
yes |
still a miss, artifacts like I am on an acid trip. |
Tested again, with the new branch, new commits, and the artifacts are still present. Should we start to consider this as a Wayland bug? |
yes it could be, but we don't really know what happens here yet. |
I can reproduce this in gnome+wayland in "The Talos Principle" - not in sway+wayland though. This may be a gnome+wayland related issue. |
Interesting that sway doesn't show this bug. I wonder about Cinnamon then, |
A great way to reproduce this for testing so that you don't need some specific commercial game is, as @juliotux said, run the demos from https://github.com/SaschaWillems/Vulkan That project has three build options for "window system integration": XCB, Wayland and DirectToDisplay. I've tried building with all three of those options. The first two run with the artifacts described by this bug report and the last one doesn't run with the following error
|
I've done some more testing here. Cinnamon desktop doesn't show any issues. |
You mentioned sway does not have issues, but it does (at least it did at the time I reported it) since I was/still am using it and it exhibits artifacts when launching the game. |
I believe, I found the cause for gnome: https://gitlab.gnome.org/GNOME/mutter/merge_requests/687 |
I've used the method described in #24 to launch the Vulkan demos (compiled with So, to me, this is pretty strong evidence this is not GNOME or mutter related! So then in response to the above comment, I'm very surprised that a mutter patch solved it! |
@felixdoerre I'll test out gnome >= 3.33.4 as soon as it hits the Arch testing repo (which I expect should be very soon) |
@greyltc Thank's for testing. Interesting... I just re-tested 3.33.92, and yes, it's still broken. Maybe when I tested it previously, there was just something broken and gnome fallbacked to x11 and I didn't notice. |
Could you try if the issue persists with e3c4f6c ? |
I did a bit of testing with e3c4f6c |
strange... the Battle.net client shows not artifacts on gnome-wayland when I try it. |
did you also recompile/reinstall your 32-bit primus-vk? |
Yeah, that's it. I forgot to also rebuild primus-vk 32-bit. |
Can confirm, the problem is fixed on the latest master :) |
🎉 Confirmed here too, the latest master fixes this up on my end! Thanks! |
So, I think we can close this issue, as there are only positive test results with the fix. If someone still observes artifacts with the fix, we'll open a new issue. |
Hello primus_vk developers. First of all, thanks for the great job!
primus_vk is running well on almost every game I tested, but present a very strange glitch on Anno 2070+DXVK. These glitches only appear using primus_vk, and are not present using nvidia-xrun or wined3d (OpenGL).
Here is a screenshot of the problem. It look like a compression or decoder problem.
The text was updated successfully, but these errors were encountered: