protonscr

Days Gone 2-3 FPS

dxvkclosed
doitsujin/dxvk#2065 · opened 2021-05-18 by dreamhunt · updated 2024-12-05 · 57 comments · github
Ddreamhunt 2021-05-18 github

Hello,
I get just 2-3 FPS with this game. It starts normally but as soon as it reaches the main menu and it slows down to 2-3 FPS. I tried to start a new game but I experience the same and it's not just in the main menu. I tried different Wine/Proton/ProtonGE versions and video drivers to no avail. I tried to get an apitrace but the game freezes at start. I installed Windows but it seems I can't get an apitrace even on this sh*t.
I think it's a DXVK version for I tied the game with DXVK on Windows and I experience exactly the same 2-3 FPS problem. Without DXVK it's running just fine.

Software information

Name of the game, settings used etc.

System information

  • GPU: GTX 1080Ti
  • Driver: 455.50.19
  • Wine version: 6.8
  • DXVK version: 1.8.1

Log files

Ddreamhunt 2021-05-18 github

What dll files?

Ddreamhunt 2021-05-18 github

You don't have to replace anything for they are not there. Just put them in the game's exe folder. Look at the DXVK wiki and don't ruin my thread please.

KK0bin maintainer 2021-05-18 github

I tried to get an apitrace but the game freezes at start.

Are you sure it doesn't just take long? Apitrace can make things VERY slow. Waiting a few minutes for a game to load something can certainly happen.

Ddreamhunt 2021-05-18 github

Yes, I know apitrace can make things very slow. I provided a lot apitraces but this indeed freezes the game.

Ddoitsujin maintainer 2021-05-18 github

Can you try perf top or something to see where it's spending all that time? 2-3 FPS can't just be some random dxvk slowness, the game has to do something really really really dumb for that to happen (probably DXGI related again).

Also, set DXVK_HUD=full and check if there's anything unusual going on.

Ddreamhunt 2021-05-18 github

Yep, the GPU is extremely low utilized:
https://i.imgur.com/eaSWhbE.png
This is a peak, it sits around 2-3%.
Here you are a perf top log:
perf.log

OOschowa 2021-05-18 github

The perf top output might be more useful if you limit it to the game process with i.e. perf top -s comm,dso,symbol -p $(pgrep gamename.exe) and use a dxvk build that is not stripped. You can use this build of dxvk master if you don't want to build one yourself: https://drive.google.com/file/d/1LqPoQO5Omz_4z92s8Hmmof5ZZ_y_ShkL/view?usp=sharing

Ddreamhunt 2021-05-19 github

Thank you, here is the new log :)
perf.log

Ddoitsujin maintainer 2021-05-19 github

looking at all the memset/memcpy spam there, does d3d11.apitraceMode = True help? (dxvk.conf, see wiki)

Ddreamhunt 2021-05-19 github

I'm at work now but when I get home I'll try it ASAP. Thank you very much for your attention!

ZZereoX 2021-05-19 github

I've confirmed that d3d11.apitraceMode = True does not resolve or attenuate any of the performance issues encountered.

I've also recorded an APITrace which can be found here: https://drive.google.com/file/d/1vScjsJ6Ml9IHH9yES_Kva8VtKS8bCJLu/view?usp=sharing

Ddreamhunt 2021-05-19 github

That's great, thanks.
I can confirm d3d11.apitraceMode = True doesn't help on my end either.

Ddoitsujin maintainer 2021-05-19 github

Looking at the trace, it doesn't really do anything special, and in fact it replays at ~27 FPS here once it reaches the menu, indicating that the problem is somewhere in the game code rather than DXVK.

Could try vendor ID overrides or something, but not really sure what to do here since we don't seem to be doing anything wrong.

Ddreamhunt 2021-05-19 github

But it's strange the problem, also exists on Windows with DXVK.

Ddreamhunt 2021-05-19 github

I tried:
dxgi.customDeviceId = 10de dxgi.customVendorId = 1c06
dxgi.customDeviceId = e366 dxgi.customVendorId = 1002
and:
allowMapFlagNoWait
But nothing helps.

RRyusennin 2021-05-19 github

Out of curiosity, I tried on Win10 and Win7 (because why not) and it does the exact same thing on both systems. The title screen with the motorbike is crawling at 2 fps, although the CPU and GPU barely reach 2%.

Mmisyltoad 2021-05-20 github

Would you be able to see if https://github.com/doitsujin/dxvk/commit/eac94823c82b77530ea2991c83f05dc81711c3e5 has any impact on the game's perf? Artifacts should be available here. https://github.com/doitsujin/dxvk/runs/2630514955

@ZereoX @dreamhunt

Ggofman 2021-05-20 github

I justed debugged the game and yes, it needs GetFrameStatistics and GetLastPresentCount to return some about correct values (I didn't try with the referenced commit though yet, used my own WIP debug changes to check).

Ddreamhunt 2021-05-20 github

@Joshua-Ashton, thanks but I really don't know how to use this. I can compile DXVK, I can apply patches but I don't know how to use this commit to apply it to the source in order to compile it :(

Ggofman 2021-05-20 github

I guess SyncRefreshCount should not be the same as PresentCount, the SyncRefreshCount counts vblanks, not presents. Not sure yet what exactly is critical for the game. In my local debug stuff I just count vblanks as (QPC / vblank_interval_in_qpc_units) and SyncQPCTime as vblanks * vblank_interval_in_qpc_units

Ddreamhunt 2021-05-20 github

Can you give me the dlls with this commit to try it or explain to me how to get the changes in order to compile them?

Mmisyltoad 2021-05-20 github

I linked a build in my message.

Ddreamhunt 2021-05-20 github

Unfortunately it doesn't help:
Screenshot_20210520_173824

ZZereoX 2021-05-20 github

@Joshua-Ashton Same results using the build artifacts linked above.

Edit: This was ran with DXVK's DXGI on Proton 6.3-4. I've also confirmed the same result is also observed on Windows.

Mmisyltoad 2021-05-20 github

You'll need to set WINEDLLOVERRIDES=dxgi=n, sorry I did not mention that.

I will also get the game and test it myself.

Ggofman 2021-05-20 github

@Joshua-Ashton For reference, here is the patch on top of Proton's dxgi which help here (100+ fps on menu).
0001-dxgi-Return-some-sensible-values-from-proxy_swapchai.txt

Ddreamhunt 2021-05-20 github

You'll need to set WINEDLLOVERRIDES=dxgi=n, sorry I did not mention that.

I will also get the game and test it myself.

Yes, it's set to native :)

@Joshua-Ashton For reference, here is the patch on top of Proton's dxgi which help here (100+ fps on menu).
0001-dxgi-Return-some-sensible-values-from-proxy_swapchai.txt

Can you give me this dxgi? Or can I apply the patch to DXVK's source and should it work?
Edit:
Hmm, tried and it seems it can't be applied.
can't find file to patch at input line 15 Perhaps you used the wrong -p or --strip option?

Mmisyltoad 2021-05-20 github

Will look at this again later today once I finish rehearsals for a show I am in :)

KKron4ek 2021-05-20 github

@gofman Thank you, this patch indeed solves the performance problem in this game.

Ddanielhurt 2021-05-20 github

No idea how to apply this patch. Thank you for coming up with a solution though.

AAntonioR-dev 2021-05-20 github

Could someone link patched files? I'm here because of the same issue but i don't understand how to patch

KKron4ek 2021-05-20 github

Patched dxgi for Proton 6.3-4. Extract and replace dxgi.dll.so (but first back it up) in steamapps/common/Proton 6.3/dist/lib64/wine.

And remove WINEDLLOVERRIDES=dxgi=n from the game Launch Options, if it's present there.

dxgi.dll.so.zip

AAntonioR-dev 2021-05-20 github

Any option for windows? I am ad amd gpu user and I would like to use dxvk instead of dx11 to get better performance

Ddreamhunt 2021-05-20 github

Then use Linux ;)
Thank you, Kron4ek, working great!

Ddanielhurt 2021-05-20 github

Then use Linux ;)
Thank you, Kron4ek!

Thanks, worked for me.

PPlayX83 2021-05-20 github

it seems there is a little bug with the patch. if I set vsync to 60 the cap is 30, if I set it to 30 the cap is 15

Ddoitsujin maintainer 2021-05-20 github
Ddreamhunt 2021-05-20 github

Yes! And it's working much faster than dxgi.dll.so. With your build the game is running over 240 FPS and with the patched dxgi.dll.so ~75-80!

Ddreamhunt 2021-05-20 github

Opps, the performance difference is due Wine versions. With Proton 6.3-4 and the newest Wine versions it's slow but with Wine-Staging-Tkg 5.15 it flies! Anyway, your build is working great. Thank you!

Ddanielhurt 2021-05-20 github

Any fixes for Windows?

DDadSchoorse 2021-05-20 github

the branch should work on windows

AAntonioR-dev 2021-05-20 github

the branch should work on windows

Could you please add some guide to compile dlls on windows or maybe add the compiled dlls? I’mnot that practical with this stuff, i just wanted to play days gone with amd gpu :)

Mmisyltoad 2021-05-20 github

There are builds for every commit if you click the checkmark for it.

DDadSchoorse 2021-05-20 github
Ddanielhurt 2021-05-20 github

What I was looking for, thanks.

DDoyyyy 2021-05-21 github

or if you want the direct link: https://github.com/doitsujin/dxvk/suites/2793793675/artifacts/62048006

Did this and allthough my fps are way better now in all areas, they immediately drop down to 10-20 every few seconds as soon as I start moving. Makes the game unplayable for me

Ddreamhunt 2021-05-21 github

I tried Proton and Wine and I don't have such problem. The game is running very well.

KK0bin maintainer 2021-05-21 github

@Doyyyy Are you sure what you're seeing isn't just shader compilation stutter? In that case it should get better as you keep playing.

DDoyyyy 2021-05-21 github

Oh yeah that could be it. I'll test that.

AAntonioR-dev 2021-05-21 github

I am testing this on windows and so far I can tell that everything is fine except for the fact that the game now does not recognize HDR monitor. I don't know if this is an issue or it is normal behaviour

DDoyyyy 2021-05-21 github

@K0bin I think that was really the problem. Left the game open for a bit and it's way better now. Still a few stutters so I'm gonna keep it open a bit longer, but already way better. Thanks for the help!

KK0bin maintainer 2021-05-21 github

@AntonioR-dev DXVK does not support HDR.

AAntonioR-dev 2021-05-21 github

@K0bin strange, because I played AC Origins with dxvk and hdr. Well, no problem, thank you all!

KK0bin maintainer 2021-05-21 github

Probably placebo or DXVK was not installed correctly.

Ccinatic 2021-05-24 github

i can't get it to work neither with tkg nor GE proton tried several version from 5 to latest, replacing only the .so file and also using the whole latest dxvk CI build. With the latest dxvk i get decent fps in the menu and cutscenes but as soon as gameplay starts it drops to 0-1 fps, changing the graphic settings has no influence

EDIT: well, after clean fresh install it is good now, thanks!

Aaxet 2024-08-27 github

I'm having same issues here.

I've tried to run different versions of the game: steam and gog - booth, same issue.

When game starts I got 60FPS stable. Intro (rendered by engine, not movie) showing 60FPS. Menu showing 60FPS. As soon game starts I get 1FPS. When I press escape (with game scene rendered in background) it shows 60FPS. If I get back to the game - 1FPS again!

Makes no sense. Like game engine doing something really wrong.

I tried to run game without DXVK but WINED3D showing 4FPS in menu, and broken colors.

My system: i3-12100F / RX6600 (amdgpu), recent wine (winehq-9.15-x86_64)

This bug should be reopened.

Aaxet 2024-12-05 github

I compiled and install ntsync kernel module and wine-tkg-ntsync. Games runs at full speed gives me 70FPS in the game with maxiumum graphical settings on my hardware (12100F, RX6600).

Proton versions

Launch options

DLLs