dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Poor performance in Mortal Kombat 11

Open SeraphisCain opened this issue 3 years ago • 4 comments

Software information

Mortal Kombat 11 Settings used: Both high preset and low preset

System information

  • GPU: NVIDIA GTX 1650 Super
  • Driver: 510.54
  • Wine version: 7.0
  • DXVK version: 1.10-async

First off, apologies for the lack of log files. They're not where they're supposed to be for some reason, and even when setting a different location via DXVK_LOG_PATH they don't seem to be getting generated. I'll absolutely post them if I can figure out why they're not being generated.

The issue: Extremely poor performance in MK11 relative to hardware. I should be able to hit 60 FPS easily on the high preset, but even on the low preset my framerate hangs around the 40-45 FPS mark. I have a bad feeling that it's going to end up being a VRAM issue that nothing can be done about (I have 4GB, which would be sufficient for this game on high settings on Windows, but possibly not sufficient here), but I figured I might as well confirm it before giving up. In the absence of logs, here's a couple screenshots of DXVK_HUD and my NVIDIA profile: 2022-03-10_00-54

2022-03-10_00-55

SeraphisCain avatar Mar 10 '22 06:03 SeraphisCain

You're running out oif VRAM, try lowering your settings.

DXVK also only has 3 out of 4GB available here, try closing background applications and disable Steam hardware acceleration to free up some more.

doitsujin avatar Mar 10 '22 14:03 doitsujin

@doitsujin I tried both of those things already. Running at minimum settings showed little improvement (maybe 45 FPS max, but still with significant drops into the low 40s/30s for extended periods). Turning off Steam hardware acceleration and closing every background process I could didn't help at all. After doing that, the NVIDIA tool was reporting only ~260MB VRAM in use prior to launching the game. Immediately upon starting MK11 (before starting a match or even getting to the title screen), DXVK_hud reported 3100+ MB in use, and the NVIDIA tool reported the full 3903MB in use (or within a few MB), as in the screenshots above. Does it seem unusual that it's filling up the VRAM right away like that? I'd do it all again and take more screenshots to demonstrate if I could, but I'm currently Denuvo-locked out due to changing Proton prefixes too many times.

I really can't understand why a GPU with 4GB of RAM, which by all benchmarks should be sufficient to run the game at 1080p/60 on high preset, can't even hit 60 on minimum preset.

SeraphisCain avatar Mar 10 '22 15:03 SeraphisCain

As mentioned, your 4GB GPU is effectively a 3GB GPU on Linux due to some Nvidia driver jank, and DXVK doesn't have sophisticated memory management like Windows does.

You could try convincing the game that you have less VRAM than you actually do (something like dxgi.maxDeviceMemory = 2048 in dxvk.conf) and see if that helps, but there's not much we can really do here, the game seems to be using 5-6 GB right now.

doitsujin avatar Mar 10 '22 17:03 doitsujin

The problem is with the game itself. Also has low FPS problems for Windows users on DirectX natively if you look on Steam Community Discussions.

Tiagoquix avatar Jun 24 '24 20:06 Tiagoquix

@SeraphisCain If you are still around can you give this a go with lastest master. Handling of vram should at least have improved a bunch

Blisto91 avatar Oct 27 '24 21:10 Blisto91

@SeraphisCain Double friendly ping

Blisto91 avatar Nov 18 '24 14:11 Blisto91

@SeraphisCain Double friendly ping

Thanks for the pings but I've long moved back to Windows for gaming (and no longer use this GPU). This was actually the "last straw" that got me to move back after having several issues on Linux. Happy to hear that it's been resolved though!

SeraphisCain avatar Nov 18 '24 17:11 SeraphisCain