-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vkd3d: Only disable raster based on SO stream if SO is used. #767
vkd3d: Only disable raster based on SO stream if SO is used. #767
Conversation
Signed-off-by: Robin Kertels <robin.kertels@gmail.com>
@K0bin , I tested you branch and doesn't work on my end. Same behavior, all screen black however the mouse pointer it's rendered correctly. Log: https://gist.github.com/catrielmuller/92dc2860d02597a4c2823c9306a1b7d0 LMK if I can help you to test another thing. |
Are you sure you installed it correctly? Other people have confirmed that it works. |
@K0bin Sorry, was my bad, Lutris override the Libs when you change the config, I created a new DXVK forlder to use from there and now the Issue gone. I will test the rest of the game. Thanks |
Game started and is running perfectly fine so far. |
How can someone not familiar with these frameworks make use of the fix to play d2 resurrected? |
@AlexBurdu Download the build here: https://github.com/HansKristian-Work/vkd3d-proton/actions/runs/1130860939 and install that into your Wine prefix using the setup script. |
Many thanks! (I've been struggling a bit with compiling the project and all its dependencies for the past hour or so) |
@K0bin have some frame drops, however it's working now, Thanks |
That's just a sound issue, isnt it? The frame time graph looks pretty good, no major spikes there. If you do have some graphics related stutter, it's most likely caused by the game itself and also happens on Windows. |
I'm also using Lutris and indeed it overrides the files with some symlinks. I went ahead and placed the files in Lutris' dir I'm now able to start the game and see the menus, but the image in the game is covered by a dark layer (don't know how to describe it better) |
I encounter the same dark layer bug when selecting the character also |
First of all, make sure your GPU drivers are up to date. It seems to work fine for most people. I dont think that will be fixed before the game is publicly available. I personally can't fix it because the apitrace someone uploaded freezes my system. (Might be the memory leak in Nvidia drivers) |
I have Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-65-generic, LLVM 12.0.0) (0x67df) |
And what Radv/Mesa version are you using? |
Same problem for me with RADV on an AMD Radeon RX 6700 XT (NAVY_FLOUNDER, DRM 3.41.0, 5.13.7-zen1-1-zen, LLVM 12.0.1). Mesa 21.1.6-1 |
Mesa 21.0.3 here |
Confirmed for AlexBurdu. I am have dark layer when selected character. RX580. Mesa 21.1.6. Manjaro. |
Anyone has the exact steps to fix this with lutris? |
I can confirm setting envir variable RADV_DEBUG=nohiz in lutris fixes this, but entering the game causes it to crash |
Confirmed fixed (dll + RADV_DEBUG=nohiz for graphical glitches) on Arch Linux, AMD Radeon RX 6900 XT, mesa 21.1.6. |
I still cant apply the fix on lutris ... I downloaded the build and executed |
Whats version of mesa are you using?
|
My suggestion is to do it manually if the script does not work for you. I renamed the original d3d12.dll to d3d12.dll.bak in the folder |
|
The patch doesn't seem to help with me at all on lutris. Hearthstone and D3 still work under same wineprefix edit: graphics working now. Copied the files as mentioned above, rather than rely on the script. Thanks for the fix :) |
In lutris, right click the game, click Wine configuration, go to libraries tab, highlight D3D12 and choose edit to change. |
I follow the way above : overwrite the d3d12.dll but still got blackscreen ( sound works )
|
This is a pull request, not a support thread. It's been confirmed that the PR works and the game is fine except for what is probably a Radv driver bug. Please stop spamming now. |
You're right about it not being a support thread. I managed to get mine to work also after cleaning up wine, lutris and starting from scratch. Works for me with lutris-fshack-6.14-3-x86_64 and with setting RADV_DEBUG=nohiz envir variable. See here: https://docs.mesa3d.org/envvars.html#radv-driver-environment-variables Cheers! |
Anyone with nvidia card works with this dll(https://github.com/HansKristian-Work/vkd3d-proton/actions/runs/1130860939) ? Looks it doesn't work on nvidia driver. Manjaro Linux card gtx960m |
You'll have to be a bit more specific than that. |
I can confirm that the performance is not ideal but it's also not bad for me. I am running at 40-60 FPS at 4K with highest settings (125% scale) with an AMD RX 5900 XT. There is a lot of input lag but that seems to be the case on Windows as well from what I hear. I am not even sure if the Windows version reaches higher FPS with this setup, I can't find any relevant benchmarks from the current beta. |
I'm not really sure that the performance issues are because of this patch or my setup, i probably shoudn't have it mentioned at all. The game is fully playable for me. But on windows it feels i have more FPS then on wine. i'll report back how many FPS i had if that is enough data. but once again this might be my problematic setup. more info: |
Not surprising at all. Nvidia Pascal GPUs (GTX 10XX) are known to perform very poorly with vkd3d-proton due to hardware limitations. |
Ah i did not know that. Alright well problem solved then. more reasons to upgrade my GPU :P. |
Works on [CPU] [Memory] [Graphics] |
I know it works, I dont need anyone else to confirm that. |
You're welcome! |
Going to ask the most dumb question about this sorry for how dumb it is and I'm asking just because I can't check it by my self right now Now... doing all that to the Battle.net Launcher is going to get transfered to D2R when I put play from the BNet Launcher? or I need to Add another Game and find the D2R executable inside the BNet Launcher prefix? I have done stuff like this to make for example Project D2 work I don't know if I need that here. Regards and sorry if the question is dumb. |
The Lutris team now ship this PR in the latest VKD3D-Proton version. No idea how you select that, I don't use Lutris. |
Just wanted to pop in and say that this fix is also working for the Quake 1 Remaster that was released on Steam today. Looks and runs perfectly so far for me. If anyone is interested, navigate into your steamapps. Your quake folder has a rerelease folder. Use that .exe in there with this fix and it should resolve it. |
Could you be more specific? I ran the game outside Lutris and still have the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also LGTM
@K0bin I am not sure how to use the .sh provided. From what I can read of the script you need to run it from the correct path. Is it the Lutris dxvk folder you copy the patch to? or is it the wine prefix created by lutris? |
Lutris ships a version that has the fix by default as far as I know. |
This is what I have read too but I have still the black screen with only music and hand pointer... |
Same for me. NVIDIA GTX 770 with Manjaro 5.14 und lutris-ge-6.16-1 runner. |
Same for me. System and drivers are up to date. PopOS, NVIDIA 750ti, and doesn't matter what runner or DXVK that I use. I've tried 1.9.1, 1.9.2, 2.4L-2 and others. The results are always the same... music is fine, black screen, then cursor finally appears. |
For all who is trying to get things to work on the current game version, please be aware that game now uses it's own DLL. I replaced both the one in Also, please remember, that this custom Also, please be aware of the fact that Battle.net periodically checks game files and it detects this DLL change. It does that on time timer, so you can update the game, then switch the DLL to the correct one and then launch it just fine. But you have to be quick and you have to do it every time game updates. Wine 6.18 (Staging) |
Diablo 2 Resurrected creates all graphics pipeline with
RasterizedStream = D3D12_SO_NO_RASTERIZED_STREAM
.This makes VKD3D-Proton disable rasterization, resulting in a black screen for that game.
Fixes #625
Props to DadSchoorse for pointing me at
rasterizerDiscardEnable
.I've modified vkd3d gears to set
RasterizedStream = D3D12_SO_NO_RASTERIZED_STREAM
and it still rendered on Windows, so I assume it's ignored if the number of SO entries is 0. I don't know how stream output works (besides a super barebones understanding of it) so I'm not sure if that's the correct solution. As usual, the Microsoft docs aren't exactly in-depth about it.It's certainly better than the current behavior though.