The Witcher 3 in Wine
Page: «79/176»
  Go to:
YoRHa-2B Mar 10, 2018
Found a significant bottleneck by the way. The game maps several images to host memory each frame, which currently forces a full CPU-GPU synchronization every single time. Not that easy to fix sadly, but I'll see what I can do.

Thing is, image mapping was already implemented properly in DXVK quite a while ago, but some games just ignore the returned row pitch and derp their data straight into the image memory with a single memcpy() call, which causes all sorts of trouble, so I decided to emulate it with a linear buffer. This works, but it's inefficient.
hilpara Mar 10, 2018
If I play the ESO with wine-pba (3.3) I have sound but also lot of graphic failures and I can't play it. (sorry about offtopic)

I think I found the problem. I don't have pulse-dev files installed. Just saw this in config.log:
configure:12707: checking pulse/pulseaudio.h usability
configure:12707: gcc -m64 -c -O3 -march=native   conftest.c >&5
conftest.c:175:10: fatal error: pulse/pulseaudio.h: No such file or directory
 #include <pulse/pulseaudio.h>
          ^~~~~~~~~~~~~~~~~~~~
Avehicle7887 Mar 10, 2018
Quoting: hilparaIf I play the ESO with wine-pba (3.3) I have sound but also lot of graphic failures and I can't play it. (sorry about offtopic)

I think I found the problem. I don't have pulse-dev files installed. Just saw this in config.log:
configure:12707: checking pulse/pulseaudio.h usability
configure:12707: gcc -m64 -c -O3 -march=native   conftest.c >&5
conftest.c:175:10: fatal error: pulse/pulseaudio.h: No such file or directory
 #include <pulse/pulseaudio.h>
          ^~~~~~~~~~~~~~~~~~~~

Hope you get that sorted soon :-)

I think I found my black screen issue. I was building Wine-Vulkan with 1.0.39, have now updated to 1.0.68 and recompiling. :)
hilpara Mar 10, 2018
Quoting: Avehicle7887
Quoting: hilparaIf I play the ESO with wine-pba (3.3) I have sound but also lot of graphic failures and I can't play it. (sorry about offtopic)

I think I found the problem. I don't have pulse-dev files installed. Just saw this in config.log:
configure:12707: checking pulse/pulseaudio.h usability
configure:12707: gcc -m64 -c -O3 -march=native   conftest.c >&5
conftest.c:175:10: fatal error: pulse/pulseaudio.h: No such file or directory
 #include <pulse/pulseaudio.h>
          ^~~~~~~~~~~~~~~~~~~~

Hope you get that sorted soon :-)

I think I found my black screen issue. I was building Wine-Vulkan with 1.0.39, have now updated to 1.0.68 and recompiling. :)

Sound works! :)
Avehicle7887 Mar 10, 2018
It seems I've hit a wall now, I've recompiled wine-vulkan against libvulkan-dev 1.0.68. Made a clean prefix, installed Vulkan SDK, applied the registry files and winevulkan.json and lastly I ran the dxvk_setup.sh.

Game launches, sound is ok but screen is black. Can anyone please share the correct procedure.
hilpara Mar 10, 2018
Ready compiled DXVK files from almost every commit: DXVK builds
YoRHa-2B Mar 11, 2018
I managed to fix the synchronization issue in the latest commits, the game should run significantly faster than before. At least it manages to saturate my RX 480 most of the time now.
Shmerl Mar 11, 2018
Quoting: Avehicle7887Game launches, sound is ok but screen is black. Can anyone please share the correct procedure.

What do you get from running vulkaninfo.exe from that prefix with wine-vulkan? Also, what version of SDK did you install? I took the latest one (for Vulkan 1.1).

One thing to note. When running setup_dxvk.sh, you need to make sure it picks up both correct wine and correct prefix. Setting just prefix alone is probably not enough. You need to set environment correctly, so your wine-vulkan will be picked instead of system wine.

I was bitten by this, and nothing worked because of it. One way to fix it, is to run wine vulkan explicitly afterwards for your prefix with something like regedit, to make sure it updates the prefix to itself.

And of course, when launching the game, you need to set all needed Wine variables to wine-vulkan locations too.
Shmerl Mar 11, 2018
Quoting: hilparaIs it possible to share the witcher installation with different wine prefixes?

You can probably symlink it, so yes. But it might use registry stuff as well. The easiest way is just to make a copy of the whole prefix. I decided not to bother and to experiment in the existing prefix. You can always uninstall Vulkan SDK, and remove dxvk overrides as well.
Shmerl Mar 11, 2018
Quoting: YoRHa-2BI managed to fix the synchronization issue in the latest commits, the game should run significantly faster than before. At least it manages to saturate my RX 480 most of the time now.

Just built latest dxvk - definitely some improvement! I'm hitting 45 fps in some places (where before it was 40).

While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.

Buy Games
Buy games with our affiliate / partner links: