dxvk: Total War Rome 2 weird Vram crashy

Split off from the Shogun 2 issue.

I have this save game where when i end the turn one of my fleets will get attacked by another fleet. If i go into this battle i will crash just as the loading is about to finish. Video memory on the card is not being maxed out system wide that i can see being only max at 3.2 - 3.3, but it seems to depend on how much is used since if i restart with fresh DE i might be able to get into the battle. Don’t know if there is a short spike when loading into battles since when you get into the loading screen video memory actually drops to below 2GB system wide. To make it not crash consistently i have to set my graphics down to High or below (Tested on R9 380) or go into settings and turn on Unlimited Video Memory option. When the option is on you allow the game to use Swap memory and when it is off it will instead lower graphical details in the background. With the option off this seems to work fine on Windows even on my card with 2GB vram as i can load into the battle even with options set to Extreme before the battle and it will say in the loading screen i am running low and is lowering the options. On Linux with dxvk it instead seems to crash when it’s done loading if there isn’t enough Vram.

When i tested on my R9 380 with 4GB i can get into the battle by for example setting the options to medium, and then after i get into the battle it will allow me to set them to Ultra or Extreme. I tried to compile dxvk with the 32bit max limit changed to 0xFD000000 which shows as a bit above 4000MB ingame. This seems to get rid of the crash on my 4GB card. But I’m guessing the issue is that it crashes at all when it should manage or lower the details like on windows and make it through.

Software information

Total War Rome 2 Very high, Ultra & Extreme graphics settings without Unlimited Graphics memory. (Depends on background Vram used i guess)

System information

  • GPU: R9 380 4GB / Nvidia 960 2Gb
  • Driver: Mesa 22.0.1 / 470.103
  • Wine version: Proton 7.0-2rc & experimental bleeding edge
  • DXVK version: 1.10.1 & master (bleeding edge)

Apitrace file(s)

  • Can make one on Windows if it’s useful for such a issue.

Log files

Made with DXVK_LOG_LEVEL=trace on the nvidia 960 Rome2_d3d11.log Rome2_dxgi.log

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 28 (12 by maintainers)

Most upvoted comments

Not sure. I’m wondering if Fsync/Esync is playing a role here or another bug/regression in wine. When using proton 4.11 with the installed dlls mentioned above with wine tricks and running with wined3d I seem to have a stable experience . I’m going to try running your dxvk version and disabling fsync, then esync.

By manually btw i mean put them into steamapps/common/Proton 7.0/dist/lib64/wine/dxvk/ for what ever proton and bit version i am testing.

Ok I see. Yes now I have 4gb for video memory showing