dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Frostpunk - Large performance delta to D3D11

Open MutantAura opened this issue 2 months ago • 7 comments

There is an up to 25% performance drop-off when using Vulkan translation in Frostpunk, substantially above what I would usually see for a wider variety of titles. When testing across native D3D11, DXVK on Windows and DXVK on Linux, the stepwise performance loss is about 10% at each stage.

Tested with two of the in-game scenarios: A New Home (ANH) and The Last Autumn (LA) at both the start of the scenario and at a save some way into each (game becomes more CPU-bound as the population and map populates).

Scenario Stage D3D11 WIN_VK LIN_VK %- Win %- Lin
ANH Start 122 108 93 11.48% 23.77%
End 84 76 68 9.52% 19.05%
LA Start 128 110 98 14.06% 23.44%
End 116 99 87 14.66% 25.00%

Related to https://github.com/doitsujin/dxvk/issues/2520 but not isolated to Nvidia/Windows environments.

ANH (Start)

D3D11: Image

Vulkan (Windows): Image

Vulkan (Linux): Image

Software information

Frostpunk (2018) All graphical settings set to their highest values. Borderless Windowed w/ VSync disabled.

System information

  • GPU: AMD Radeon RX 9070XT
  • Driver: Mesa 25.2.6 (Adrenaline 25.11.1 on Windows)
  • Wine version: bleeding-edge (Proton-GE 25)
  • DXVK version: latest-git (Proton-GE 25)

Apitrace file(s)

Unsure if correct, game took over 10 minutes just to reach gameplay. https://mega.nz/file/51sn3LbR#bqbFV1ZitanL2pn7_Pw4tOaD0nMcwiy1AvEyDrKWRFQ

Log files

steam-323190.log

MutantAura avatar Nov 16 '25 12:11 MutantAura

I'm frequently testing this game and there's not much room for optimization here, certainly nothing that explains 25% losses that can be attributed to DXVK rather than GPU-specific driver issues and some general engine deficiencies that we can't do anything about.

Resizeable BAR is required, but that seems to be enabled on your system already anyway.

doitsujin avatar Nov 16 '25 16:11 doitsujin

At least since your Windows+DXVK results also seem significantly better than DXVK+linux, I would suggest that you report it over at https://gitlab.freedesktop.org/mesa/mesa as a driver bug. You could also double check with AMDVLK on linux, which should be basically the windows vulkan driver (though now abandoned).

mbriar avatar Nov 16 '25 17:11 mbriar

Tested AMDVLK as well and interestingly it's a little worse than RADV by about an additional 2%. Of course it hasn't been updated since Q2 but it seems there's something majorly different Windows side. Mesa issue has also been opened (https://gitlab.freedesktop.org/mesa/mesa/-/issues/14305)

MutantAura avatar Nov 16 '25 19:11 MutantAura

Does it run any better with RADV_PERFTEST=nggc?

doitsujin avatar Nov 17 '25 17:11 doitsujin

Does it run any better with RADV_PERFTEST=nggc?

No difference unfortunately.

MutantAura avatar Nov 17 '25 20:11 MutantAura

The Linux performance maybe have improved a bit with current mesa main

Blisto91 avatar Nov 17 '25 21:11 Blisto91

The Linux performance maybe have improved a bit with current mesa main

Seems that way, haven't done any long runtime testing but a quick check with mesa-git as of this comment (25.2.6/26.0.0) ANH Start: 93/101 (+8%, -7% vs WinVK, -18% vs D3D11) ANH End: 68/72 (+6%, -5% vs WinVK, -14% vs D3D11)

Halved the gap to the proprietary driver although translation still seems the heaviest piece of the chain.

MutantAura avatar Nov 20 '25 18:11 MutantAura