doitsujin / dxvk

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

Middle Earth Shadow of Mordor carshes at startup #457

Closed Ahmed-E-86 closed 6 years ago

Ahmed-E-86 commented 6 years ago

System information GPU: HD 8750M Driver: Mesa 18.1.1 (Padoka stable) Wine version: 3.10 staging DXVK version: 0.54

Middle Earth Shadow of Mordor GOTY crashes at startup.

I don't know what is the status of this game on DXVK. Please, someone confirm if this game works with DXVK or not.

ShadowOfMordor_d3d11.log ShadowOfMordor_dxgi.log

jarrard commented 6 years ago

For starters your using the older version DXVK, and you should try mesa 18.1.2+

Also you should enable fake dx10 support which is what it complains about, that might get it going if your lucky. There is a DX10 to Vulkan project but its a bit complicated getting it integrated alongside DXVK.

K0bin commented 6 years ago

The game doesn't actually need D3D10.

Setting DXVK_FAKE_DX10_SUPPORT=1 made it run for me (on Windows).

doitsujin commented 6 years ago

DXVK_FAKE_DX10_SUPPORT=1 seems to be necessary to work around an error message complaining about missing Dx11 support. Is that what you're getting?

But even with that it doesn't work for me, but it also doesn't work with wined3d - one CPU core is spinning at 100% and nothing is happening, so the game likely requires some messing around with wine, or straight-up won't work. Then again, it has a Linux port anyway.

ziabice commented 6 years ago

I confirm the game isn't working on my PC (Mesa 18.1.1, AMD RX 580 4GB).

The Linux port has very poor performance, so trying the game with DXVK will be a valid alternative, IMHO. I get only one third of the FPS I get under Windows.

doitsujin commented 6 years ago

@ziabice please specify "isn't working".

jarrard commented 6 years ago

Yeah without log files its pretty hard to help. Also last time I checked this game works well with native Linux and NVIDIA hardware, not sure if there is a specific issue with your AMD drivers or not.

Unless its like tomb raider where the performance test works great until you actually play the game.

doitsujin commented 6 years ago

@jarrard in my experience, the Linux port runs fine on AMD (RX 480 here).

I'd gladly get any bugs with this game fixed but at the moment it appears that it doesn't work with wine at all, in which case there's not an awful lot I can do about it.

ziabice commented 6 years ago

@doitsujin sorry, I'm not a native english speaker, what do you mean for "specify "isn't working""?

The game works natively under Linux with OpenGL with poor perfomance, but it doesn't at all under wine or wine+dxvk. Last time I tried (last weekend), I deleted the game, so I can't reproduce, if needed, the issue now.

EDIT: tested with AMD Radeon 7850 (not under wine) and AMD RX 580

Leopard1907 commented 6 years ago

@ziabice If a game does not work with Wine at all , he can't do anything about it.

Requirements for opening a issue , with "not working " title:

Game needs to run with Wine first , but it doesn't work with DXVK.

ziabice commented 6 years ago

@Leopard1907 You are perfectly right, but I haven't opened this issue

Leopard1907 commented 6 years ago

@ziabice Yeah ,lol. Sorry for confusion :D

doitsujin commented 6 years ago

@ziabice what exactly did you mean by this:

I confirm the game isn't working on my PC

I need more details.

Ahmed-E-86 commented 6 years ago

I saw in a website selling the game a warning that the game is not optimized to work with AMD and Intel GPUs on Linux at the moment.

Ahmed-E-86 commented 6 years ago

I need to ask a question if you excuse me : If I run a game that support Vulkan like Doom 2016, do I need to turn off DXVK?

K0bin commented 6 years ago

Not really relevant to this issue but you don't have to turn it off. It'll just sit there unused.

Leopard1907 commented 6 years ago

That Intel and AMD gpu's are not supported notice is an old issue.

Back in the time , AMD open source was not good and closed source AMD driver fglrx was a literal shit.

That is an old notice. Reasons that game runs poorly on Linux was:

Feral was not that experienced

Port based on OpenGL because there was no Vulkan at that time

Dx to OGL conversion literally blocks optimization.

For example ; Rise of The Tomb Raider works great and not have that kind of huge performance difference. Because Vulkan gave them much more room for performance.

TL DR ; AMD gpu's are not supported warning is not relevant now.

Ahmed-E-86 commented 6 years ago

I hope more games will be based on Vulkan because it runs well on Linux.

I've waited so long for DX11 to be ported on Linux. Thanks to DXVK, it's now possible.

ziabice commented 6 years ago

@ziabice what exactly did you mean by this:

I confirm the game isn't working on my PC I need more details.

@doitsujin I'm downloading the game right now, I'll reply ASAP (it's a 40 GB D/L...)

Ahmed-E-86 commented 6 years ago

I tried the native version of Middle Earth the Shadow of Mordor, and it is not working at all.

Leopard1907 commented 6 years ago

@ahmed-elsayed2017 Let me guess: It stayed on loading screen with a spinning logo?

Leopard1907 commented 6 years ago

Just try this:

Go to your Steam library - Right Click Shadow of Mordor - Properties

Set launch options:

LANG=C %command%

Ahmed commented 6 years ago

Wrong ahmed

On Thu, Jun 28, 2018, 3:44 PM Leopard1907 notifications@github.com wrote:

Just try this:

Go to your Steam library - Right Click Shadow of Mordor - Properties

Set launch options:

LANG=C %command%

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/doitsujin/dxvk/issues/457#issuecomment-401150965, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgzi1UUFTIVeBe8VgYvQ5r-mqgCr_Tbks5uBTI3gaJpZM4U3c4- .

Leopard1907 commented 6 years ago

@ahmed Sorry :(

ziabice commented 6 years ago

@doitsujin here are my tests results:

System specs: CPU AMD A10-7850K, 16 GB GPU AMD RX 580 4GB Distro: Manjaro Linux Drivers: Mesa 18.1.1, amdgpu Wine-staging-nine 3.10 (from archlinux) DXVK 0.60 (from AUR dxvk-bin)

Wine run from PlayOnLinux and the console. Game run from Steam installed into a 64bit prefix.

First run: game refuses to start complaining about missing DirectX 11 Second run: added DXVK_FAKE_DX10_SUPPORT=1 at launch. The game started (Steam says it is running), but it eats 100% CPU on one single core, stuck. No disk activity.

ShadowOfMordor_d3d11.log ShadowOfMordor_dxgi.log

Hope this helps!

doitsujin commented 6 years ago

@ziabice thanks, that's the same issue that I'm having as well but it might not be a DXVK issue. The same thing also happens with wined3d for me.

Does that work for anyone here?

Ahmed-E-86 commented 6 years ago

@Leopard1907 No, it gives me these errors :

libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 97 Current serial number in output stream: 98

Ahmed-E-86 commented 6 years ago

When I open any game, it uses only 25% of my cpu. Is that ok?

Leopard1907 commented 6 years ago

@ahmed-elsayed2017 Your driver is not configured correctly.

Use Padoka Ppa if you're on Ubuntu or Ubuntu based distros ( like Mint ) , to update your driver.

https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa

Ahmed-E-86 commented 6 years ago

It is already installed.

Ahmed-E-86 commented 6 years ago

@Leopard1907 I fixed the problem with steam on Linux. The native version is not bad.

It doesn't give the same framerate as Windows, but it's playable.

Leopard1907 commented 6 years ago

@ahmed-elsayed2017

Nice. Personally , i only prefer Wine + DXVK for non native titles. Using native versions for other games no matter their performance rates are. Shadow of Mordor would benefit from a Vulkan port like Feral did with Mad Max but asking for a revisit for these older titles would be pointless.

K0bin commented 6 years ago

If it doesn't work there's either something wrong with your setup or it's a Wine issue.

The game runs great with DXVK on Windows.

image

This issue can be closed.

massatt212 commented 5 years ago

The game has a problem with resolution stuck at 540p and can't be change I think it's caused by the amd spoof for Nvidia

pchome commented 5 years ago

@massatt212

I think it's caused by the amd spoof for Nvidia

You can check this out by using e.g. https://github.com/simons-public/protonfixes

util.protontricks('vd=1920x1080') -- wine virtual desktop util.protontricks('force_gpu=nvidia') -- report Nvidia GPU by wine (Proton)

util.set_dxvk_option('dxgi.customDeviceId', '10de') -- util.set_dxvk_option('dxgi.customVendorId', '13c2') -- report Nvidia GPU by DXVK

evanrush commented 5 years ago

find . ( -name "libgcc_s.so" -o -name "libstdc++.so" -o -name "libxcb.so" -o -name "libgpg-error.so" ) -print -delete

evanrush commented 5 years ago

or "LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 DRI_PRIME=1 sh run_game.sh"