doitsujin / dxvk

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

Some performances feedbacks on my game #1697

Open jeremyPGE opened 4 years ago

jeremyPGE commented 4 years ago

Hello everyone,

I've been developing a game for a few years on Unreal Engine 3 and I'm testing DXVK. I want to tell you that I was pleasantly surprised with the performance. It's really a good job.

Well, I'm here to report two issues:

Light shafts cost when using legacy DX9, but with DXVK the cost is insane.

I have recorded some benchmarks to compare performances, a playlist is available here: https://www.youtube.com/playlist?list=PLV913EkEcIFC51j-UsW9Pu39A9ekbauL6

There are two cases tested: 1080p and 4K from low textures quality to ultra. If you take a look at the videos "1080p DirectX9 vs Vulkan (dxvk) XXXX", you will observe good performances with dxvk. But if you check "4K DirectX9 vs Vulkan (dxvk) XXXX" you will observe that DirectX9 is running better than dxvk in any case (sorry, the fps counter is tiny).

I have to precise: On the game, when we select a new quality preset, it reduce textures quality only. There is no static mesh LOD yet. So there is exactly the same number of triangle to draw and draw primitives call in any game graphic quality. The only thing changing is textures resolution. Draw call primitives are bigger than other games on this type (Arena FPS) because we decided to work with the most modular assets possible. As the level editor is included, players can create what they want with our modular assets library (5000+).

As I've done several tests, I'm ready to run other tests and provide needed files but in this wiki: https://github.com/Joshua-Ashton/d9vk/wiki/Making-a-Trace the link to download prebuilt apitrace files is dead ( https://people.freedesktop.org/~jrfonseca/apitrace/apitrace-msvc-latest.7z ) If you want to test it, the game is available on steam: Master Arena Demo :)

### System information

Best regards, Jérémy

mirh commented 4 years ago

I'm also seeing something similar in Mass Effect with an amd card (even though nothing this big). I wonder if it isn't related to #1675, #1717 and #1721?

K0bin commented 4 years ago

The problem of #1717 is already fixed and the user just opened an identical issue to ask for a build.

1721 seems to be just a stupid game that spams API calls (not even draw calls) like there's no tomorrow.

doitsujin commented 4 years ago

@Joshua-Ashton can you take a look at some point?

mirh commented 4 years ago

I did test #1717 and from 145 fps (was 184 before with d3d9) performance tanked even more to 104. I assumed that was just some half-assed hotfix to be ironed out in the future.

1721 didn't really provide real performance figures but similarly it's faring worse.

doitsujin commented 4 years ago

@mirh please don't hijack other people's issues. If you have anything specific to report and can provide us something to work with, please open a separate issue.

K0bin commented 2 years ago

Is this still an issue?

Your game is Master Arena, right? https://store.steampowered.com/app/704020/Master_Arena/

jeremweb commented 2 years ago

Yes it's still an issue. And yes, https://store.steampowered.com/app/704020/Master_Arena/ is my game.