Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: DXVK (D3D11 on Vulkan for WINE) runs Nier Automata!
Page: 3/3
  Go to:
whizse 11 Mar 2018
User Avatar
Quoting: whizse(Can not for the life of me get dxvk working on anything but 32bit stuff, but that's probably a problem on my end!)
Should not have blamed dxvk here! Everything Vulkan 64bit was crashing for me. Deleting ~/.cache/radv_builtin_shaders solved it.

An uneducated guess is that switching between 32- and 64bit versions of the driver confused radv? I mention it here in case anyone else runs into the same problem, since I guess this mostly concerns Wine. (Very few native 32bit Vulkan games I assume).
Julius 26 Mar 2018
I tried following this directions to get it working with Lutris:
https://forums.lutris.net/t/how-to-setup-dxvk-on-lutris/1704

But I am having issues getting my test game Nier:Automata to run, so far it just crashes at startup. Anyone has an idea what might be going wrong?
libgradev 26 Mar 2018
Quoting: JuliusBut I am having issues getting my test game Nier:Automata to run, so far it just crashes at startup. Anyone has an idea what might be going wrong?
Run Steam in the prefix first, then launch NieR.
Julius 26 Mar 2018
Thanks... but after some playing around with the settings it seems like disabling the steam overly did the trick?

With DXVK the overall framerate in Nier is much better, but does anyone else have this odd every 5 second or so quick stutter? I thought it was shader compiling related and would go away after some play-time, but it seems to persist. Not really major that it would not be playable, but slightly annoying.
YoRHa-2B 28 Mar 2018
  • DXVK
I thought it was shader compiling related and would go away after some play-time, but it seems to persist.
Even if you keep running around in the same area for a while?

Pipeline compilation stutter is nasty and it will happen every time the game uses a combination of shaders that it hasn't used before, and in most games it won't go away completely.
tuubi 28 Mar 2018
User Avatar
Quoting: YoRHa-2BPipeline compilation stutter is nasty and it will happen every time the game uses a combination of shaders that it hasn't used before, and in most games it won't go away completely.
I assume DXVK doesn't have a shader cache of any sort (yet)? I understand you can't precompile much when you're wrapping DX11 at runtime, but a cache should help after first run. But I guess something like this wouldn't be a priority when you've got actual API features to implement.
YoRHa-2B 28 Mar 2018
  • DXVK
It does have a shader cache and it's even being used during the first run to speed up compilation of pipelines which are similar to each other (i.e. same shaders, but different blending parameters).

If it's not that, it might also be the game itself which does have some minor stuttering issues even on Windows, especially if you haven't installed the game on an SSD.
Shmerl 28 Mar 2018
Quoting: YoRHa-2BIt does have a shader cache and it's even being used during the first run to speed up compilation of pipelines which are similar to each other
Just FYI in case you missed it: https://github.com/KhronosGroup/Vulkan-Ecosystem/issues/26
Julius 1 Apr 2018
Quoting: YoRHa-2BEven if you keep running around in the same area for a while?

Pipeline compilation stutter is nasty and it will happen every time the game uses a combination of shaders that it hasn't used before, and in most games it won't go away completely.
Yeah, it was pretty much constant... however after updating to the March 31st compile, the stuttering seems to be gone on Nier Automata. Thanks a lot for the great work on DXVK!
Pependos 3 Apr 2018
Game crash at launch. Witcher 3 works fine, Kingdom Come: Deliverance, RiME, The Witness. Other games also crashes - GTA V, Obduction, Alan Wake. And I can't understand what N:A needs to run properly. I install wine3.5 and VulkanSDK, apply dxvk, nothing more. Any suggestions?
Julius 4 Apr 2018
Did you try to disable the steam overlay for N:A as I wrote before? That seem to have fixed the crash for me.
Pependos 10 Apr 2018
My problem solved after enabling 'virtual desktop' in winecfg and doing some tricks with resolution.
Pependos 11 Apr 2018
Good news: suddenly for me, but my DualShock3 works like a charm right out-of-the-box! Just plug-in and enjoy. Bad news: low performance. I have about 18-20 fps on most areas (especially open-air), and my game runs sooooo sloooowwwlllyyy and sssmmmooottthhh, just like in slo-mo videos, even in low settings, even with a 'performance' mode for CPU. Honestly, that's not what I expect after perfect The Witcher 3's 25 fps on max settings in Novigrad main square. Maybe there are some parameters I need to ajust? I prefer the real-time game speed with missing some frames to a 'smooth-and-slowly' game run.
YoRHa-2B 11 Apr 2018
  • DXVK
The slow motion thing is caused by the game itself. Basically, if you drop below 30 FPS, you're screwed.

On Windows you can use the FAR mod for the game to work around it, but that doesn't work on Wine/DXVK. In general though, this game is a GPU hog that heavily favours AMD, a 950 probably just doesn't cut it. At least for 1080p.
Pependos 11 Apr 2018
Oh, thanks. And one more question. With dxvk enabled there are no other screen resolutions available except the 'virtual desktop' resolution. In clear new prefix without dxvk there are a lots of resolutions for choose. Is it normal?
YoRHa-2B 11 Apr 2018
  • DXVK
Yes. It did actualy support multiple resolutions at one point but it didn't work properly for many games.

If you are building DXVK yourself, you can comment out [these](https://github.com/doitsujin/dxvk/blob/8ea17e7a25550ea91d5f75e8c2bd6232057d5cc9/src/dxgi/dxgi_output.cpp#L197-L198) two lines and it should show all resolutions. It works in Nier, but causes trouble with most other games due to the buggy DXGI implementation.
popsulfr 12 Apr 2018
Quoting: YoRHa-2BFAR mod for the game to work around it, but that doesn't work on Wine/DXVK.
Well...

External Media: You need to be logged in to view this.


This is on Windows though with DXVK enabled. Using the Special K Global Injector and only injecting after starting the game it seems to work.

Haven't tried in wine yet but I expect there to be issues with the Special K injection :(

I have to applaud the progress you've been making with DXVK, this is amazing stuff.
YoRHa-2B 12 Apr 2018
  • DXVK
Haven't tried in wine yet but I expect there to be issues with the Special K injection
Yep, that's why it won't work. I tested this a couple of times, unsuccessfuly.

Anyway, that's some pretty awful framerate. Do you have MSAA enabled or does it really run that poorly on NV?
popsulfr 12 Apr 2018
Quoting: YoRHa-2BYep, that's why it won't work. I tested this a couple of times, unsuccessfuly.
Yeah... heh confirmed this for myself :S: Is this an issue with how Wine handles dynamic libraries ? The injector tries and I get the infamous MGS sound crash. Playing around with taskset and limiting the amount of cores does some weird stuff though, sometimes it just gets stuck or crashes later. I've seen bug reports pertaining to FAR having issues sometimes with the how the cores are used so I gave it shot.

Technically it would be feasible although a huge undertaking to merge the Special K code base with DXVK to make a special version just for NieR:A, right? I mean it works on Windows if it is injected later (but that's maybe an argument on how broken windows is sometimes :P)

Quoting: YoRHa-2BAnyway, that's some pretty awful framerate. Do you have MSAA enabled or does it really run that poorly on NV?
This is without DXVK

External Media: You need to be logged in to view this.


So closer to 60 indeed. And I do not have any Anti-aliasing enabled since it doesn't play well with the Ambient Occlusion.

EDIT:

On Wine Staging 3.5 + DXVK 1fb22a6 (wrong commit, sorry) adb1789

External Media: You need to be logged in to view this.


The performance is a bit worse on Linux Wine

The only variable I have is DXVK_HUD=1.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo 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