doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.18k stars 849 forks source link

Mafia The City Lost Heaven low FPS #2625

Closed Dantec116 closed 2 years ago

Dantec116 commented 2 years ago

Hi! I'm using the Widescreen Fix for Mafia The City Lost Heaven. To fix the flickering shadows, I use DX VK. But FPS starts to fluctuate around 57-61. Because of this, the image twitches, it is uncomfortable to play. What to do?

Blisto91 commented 2 years ago

If you mean stuttering or tearing then see if enabling Vertical synchronization and Triple buffering in the games settings help. Or maybe setting d3d9.maxFrameLatency = 1 in the conf. (Tho dunno about that one)

If you mean fps in general then the game seems to have a fps cap if that is what you mean by 57 - 61. Which it seems you can raise with the widescreen fix. Tho it might have issues.

Edit: Also can you post the logs from the issue template if the above doesn't help?

Dantec116 commented 2 years ago

Unfortunately, this did not help, I do not even know what to do :(

K0bin commented 2 years ago

If you want us to take a look at it, we need logs, info about your system and most importantly an apitrace.

Blisto91 commented 2 years ago

See https://github.com/doitsujin/dxvk/wiki/Making-a-Trace for how to make a apitrace. Ask if you are in doubt.

For the logs they should generate next to the games exe when using dxvk through regular wine or on windows. If you are using proton or lutris you have to enable logging trough there or launch with DXVK_LOG_LEVEL=info

Blisto91 commented 2 years ago

You can try if these help

d3d9.presentInterval = 1
d3d9.numBackBuffers = 3
Dantec116 commented 2 years ago

The frame rate issue has been resolved. Installed Widescreen fix, renamed d3d8.dll from it to dinput8.dll. Connected enb converter for Mafia. And I installed the Riva Tuner program, set the screen refresh rate to 60 fps in it. As a result, the game began to hold frames stably, the shadows do not flicker. So everything turned out okay.