protonscr

Dark Souls: PTDE +Remastest 1.01 mod produces 200-300ms pauses under Proton (tested on Windows as well)

dxvkopen help wantedperformanced3d9
doitsujin/dxvk#3281 · opened 2023-03-09 by rudemario · updated 2023-03-25 · 4 comments · github
1 matching comments, n / p to jump
Rrudemario 2023-03-09 github

Please describe your issue as accurately as possible.

Running Dark Souls PTDE using the Remastest 1.0.1 mod on my Steam Deck I get massive stutters that aren't shader compilation related at a pretty regular interval at the first bonfire 3 minutes into the game. It's not a persistent issue, but it ebbs and flows as you near borders to new areas where I areas beyond walls near to you start culling and such.

https://imgur.com/a/P5RnFTL

Here's a video showing me walking in circles around the first bonfire, showing the issue.

This does not happen when running stock/unmodded Dark Souls PTDE, which runs flawlessly and frametime consistent. It runs perfectly fine on any of the newer Proton versions, GE or otherwise.

This only happens after installing the mod.

Speaking with Rhedox from the Linux Gaming Dev discord, he suggested that I test under Windows after looking at the apitrace to see if DXVK causes problems there, to rule out it being a Wine issue.

Testing in Windows 10, GTX 1060 mobile using DXVK-async 1.10.1 gave me the same issue. Of course, since the hardware is better than the Steam Deck, it produces a lesser duration stutter, but still consistent. Below is a video.

https://imgur.com/a/Fo7dG3H

So maybe DXVK doesn't like something about this mod? I'm not smart enough to make sense of the apitrace, so I'm opening an issue.

if anyone has any questions or ideas I'd be happy to help test to try and figure it out.

Thanks!

If you use Windows, please check the following page: https://github.com/doitsujin/dxvk/wiki/Windows

Software information

Name of the game, settings used etc.

Dark Souls: PTDE (Version without GFWL)
Remastest 1.01: https://mega.nz/file/uU8WVajS#9NAOq5BDLWTjWPzj2nsBE4YVGElcW5mO2fIp9kwp460

System information

Steam Deck running SteamOS 3.4.4

  • GPU: AMD Custom GPU 0405 (RADV VANGOGH)
  • Driver: Mesa 22.2.0-devel (git-fec9285634)
  • Wine version: GE-Proton 7-35, 7-49
  • DXVK version: 1.10.1, 1.10.1-async, 2.1

Apitrace file(s)

For instructions on how to use apitrace, see: https://github.com/doitsujin/dxvk/wiki/Using-Apitrace

Log files

  • d3d9.log:
  • d3d11.log:
  • dxgi.log:
BBlisto91 2023-03-09 github

Thank you for a well made issue 🙂👍

KK0bin maintainer 2023-03-10 github

I can reproduce it using Remastest 2.0. Any idea which particular mod causes it?

Rrudemario 2023-03-10 github

I can reproduce it using Remastest 2.0. Any idea which particular mod causes it?

I'm not sure. You may be able to disable Dark Souls Overhaul because I believe it's just hijacking a DLL, can't remember if it's chained off of something or if the mod launches without it, but I believe it was originally grafted in there because InfernoPlus and MetalCrow behind DSCM worked together to incorporate stuff.

I THINK that's all that's included with Remastest 1.01 (not 2.0), is modified unpacked game files, DS Overhaul, and DSCM (which is a separate application). So that would mean it's either DS Overhaul or the modified game functions by InfernoPlus causing the issues.

I believe a fork of DS Overhaul was needed to facilitate and enable 18 player PvP hence mainly why it's in there.

When I get home in about 6-7 hours I'll try to see if I can get the mod to load without DS Overhaul and see if that improves anything.

Glad to know it occurs on 2.0 as well

KK0bin maintainer 2023-03-11 github

The D3D9-Overlay mod without anything Dark Souls specific combined with DXVK seems to be enough to trigger the issue.

It also appears to come down to texture streaming.
image
This function only shows up prominently in the profiler during spikes and according to the developer of DarkSouls-Overhaul, that's D3DX9_43.DLL::D3DXCreateTextureFromFileInMemoryEx. Logging texture creations supports this theory.

I do not understand however, why the Overlay mod makes this so much slower. The vanilla game does the same thing but doesn't exhibit frame time spikes with DXVK.

DLLs