doitsujin / dxvk

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

Black screen with storm engine (Sea Dogs: To Each His Own) #2457

Open q4a opened 2 years ago

q4a commented 2 years ago

Hi. There is game with fully open-sourced game engine, which does not work under Proton with DXVK, but works fine with OpenGL from wined3d: https://www.protondb.com/app/223330

I created simple gamedata (assets CC0 from opengameart) with main screen only and got same black screen. And I hope somebody can reproduce it with wine, because I'm bad at setting up and configuring wine and did all the tests in Proton.

Here is all in one test: builded engine + game scripts + game data = storm-menu.tar.gz

I tested storm-menu in Windows 10 and Proton+PROTON_USE_WINED3D and got good screens (there is a random weather and time of day in the main menu, so the colors may differ):

Windows 10 screen ![main-menu-1](https://user-images.githubusercontent.com/1950719/151032962-b89a375d-6a26-460d-b6e0-812606e8726e.png)
Proton + WINED3D screen ![main-menu-2](https://user-images.githubusercontent.com/1950719/151033459-5155de24-c1f4-4a71-acd3-df2da7bb485e.png)

And I expect some similar screen with Proton + DXVK, but got only black screen with the sound of the waves (from main menu).

Software information

storm-menu.tar.gz contain: https://github.com/storm-devs/storm-engine - builded game engine and techniques, GPLv3 branch develop, commit 292161b143dfff12d8743ce2e2da6f10906cf782 It is msvc-release build, but it can be replaced with debug one from CI: https://github.com/storm-devs/storm-engine/actions + https://github.com/storm-devs/sd-teho-public - scripts and configs, GPLv3 branch develop-eng, commit f916551822b6b4f1c4c3c77c312379e3d3aec23e + https://github.com/q4a/storm-demo - additional data for main menu, CC0 branch develop, commit 74a1a1d197b0f87264e84a3f98be39cab814f552

System information

Log files

I replaced real game (Sea Dogs: To Each His Own) with my storm-menu and got logs: steam-223330-DXVK.tar.gz steam-223330-WINED3D.tar.gz

q4a commented 2 years ago

I'm very sorry, but I'm really stupid in wine/winetricks - so I did tests with Proton =( Ping me if the information provided is not enough to reproduce, I will seek someone's help me with setting up wine / winetricks / lutris

q4a commented 2 years ago

What about this bug? Is there any news?

Blisto91 commented 2 years ago

Can confirm the game launches with a black screen with proton and that it launches fine with PROTON_USE_WINED3D=1 %command% on my R9 380 on mesa git. Tho i am a bit unsure really if the problem is with dxvk since if i on windows 10 put dxvk's d3d9.dll & dxgi.dll into the games folder it seems fine. And i verified with a overlay the game was using vulkan. (i can't get dxvk hud working in the game on windows and in proton it only shows briefly at the start. Also mangohud crashes the game)

Tho if a apitrace is needed then i can post one made on windows 10.

K0bin commented 2 years ago

I'm not sure if this is actually a DXVK issue. If I attach renderdoc and create a capture of the black screen, I can see in renderdoc that it's rendering just fine.

image

Making an apitrace of the game and replaying that also shows the ship. So something goes wrong when presenting the image with DXVK.