doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.77k stars 823 forks source link

(Windows) Deadlock (unannounced Valve game) error on startup #4215

Closed ividyon closed 3 weeks ago

ividyon commented 3 weeks ago

The new unannounced game by Valve does not allow launching when DXVK DLLs are used in the directory.

Deadlock is a D3D11 game, but also features a Vulkan mode.

If trying to use DXVK with the D3D11 mode, by copying DXVK's dxgi.dll and d3d11.dll into the game directory, the following message appears, and the game refuses to launch:

image

This issue is not present when running in Vulkan mode, but presumably DXVK has no effect then.

I understand that this likely is not a DXVK bug per se, but as legacy DXVK is often used by Windows 7 users to run newer games, it would be a nice thing to look into.

On Windows 7, Deadlock in D3D11 mode causes crazy rainbow texture issues, while Vulkan mode has extremely poor performance and crashes very quickly after loading into the game. This is what makes DXVK interesting in the case of this game, despite its official Vulkan implementation.

Software information

Deadlock, unannounced game by Valve Software

D3D11 mode and Vulkan mode

System information

Tested on:

Blisto91 commented 3 weeks ago

This is the games anti cheat kicking in (which is its job). Disabling it by launching with -insecure makes dxvk able to work but you wont be able to join a online match ofc.

Edit: Also be sure to read https://github.com/doitsujin/dxvk#online-multi-player-games

ividyon commented 3 weeks ago

Good to know. Thank you. It is quite confusing, because a player on the Deadlock forums insists that they got DXVK to work just fine, but based on your testimony, that can't be true.

doitsujin commented 3 weeks ago

Maybe they were talking about Proton or something.

Anyway, closing based on above info.

ividyon commented 3 weeks ago

@doitsujin @Blisto91 I'd like to add onto this that apparently the solution is to set the game EXE to "run as administrator". This seems to launch the game with the DLLs correctly, working on my Win11 PC with the newest DXVK. I'll have the Win7 friend test it as well, but so far it's looking good, though I lack a means to confirm that DXVK really truly is running (the d3d11 and dxgi logs are empty).

EDIT: The logs seem to have filled up after I quit the game, so it appears to be working, including online mode.