Joshua-Ashton/d9vk

Battlefield 2 → crash when "Lightning" and "Dynamic Shadows" are set to high + bad transparency

NerosTie opened this issue · 31 comments

with d9vk:
https://imgur.com/InHs1gi

System information

  • GPU: Nvidia GT 730M
  • Driver: 435.21
  • Wine version: Proton 4.11
  • DXVK version: #894

Apitrace file(s)

https://mega.nz/#!ez4i2I6J!RxDrf-ZPboOqCQ_Vusmk2U1hDVjJIv9ofszpQ9WQIYE

Log files

battlefield2-grass.log

I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.

If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.

I tried the same fix with d9vk and it's looking good for me now

I can't register (an error about the security code...). Can you send the zip file here?

shaders_client.zip
Thia should be it

Thanks. Yes, it solves the issue.
@Joshua-Ashton Is something can be done with d9vk without this workaround?

It looks like there may have been a regression somewhere between 78dde4b and the most recent commit. I downloaded the latest from the pipeline and noticed black lines appearing on the ground. Reverting back to that commit looks to have fixed it.

I can confirm.
https://imgur.com/A3wxjJP

Where I zoom, I want to show there is a grid of points.

The game does its lighting pass, then tries to render the same thing over the top with LESS_EQUAL

I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.

If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.

I tried the same fix with d9vk and it's looking good for me now

That is not a proper solution, if you replace these files you cannot play multiplayer anymore, because the multiplayer anti cheat system does not allow changes in game files

I was waiting for d9vk to enable a proper fix for this problem

I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.
If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.
I tried the same fix with d9vk and it's looking good for me now

That is not a proper solution, if you replace these files you cannot play multiplayer anymore, because the multiplayer anti cheat system does not allow changes in game files

I was waiting for d9vk to enable a proper fix for this problem

At least for me, I wasn't trying to show that as a "proper" solution, simply a workaround that would make single player work (how I mainly play) and possibly provide insight into what might be happening for the D9VK devs (in case the difference in shaders might be interesting to see).

The shadows are now fixed thanks to DXVK 1.5.1 ! 🥳

Screenshot_20200110_002412

But the grass is still a grid of points (you can see it on the screenshot)

I'm trying with DXVK 1.5.1 and D9VK 0.40.1 and still seeing most of the same glitches:

image

image

image

image

Also when configuring all grahic effects to the highest quality I get a crash with this error when loading the map:
image

What's the version of your driver? Nvidia?

You shouldn't use D9VK 0.40.1, it's outdated.

What's the version of your driver? Nvidia?

You shouldn't use D9VK 0.40.1, it's outdated.

This is my driver:
image

I'm using D9VK 0.40.1 because is the latest avaiable in Lutris at this time

Well, that's because you are using D9VK. DXVK 1.5.1 is available in Lutris.

The releases of D9VK alone will be forever outdated. Now, it's bundled with DXVK.

I recommend you to use this: https://git.froggi.es/doitsujin/dxvk/-/jobs
It's compiled with the latest commits.

Edit: also, update your driver, it's oudated too (5 months old!)

Well, that's because you are using D9VK. DXVK 1.5.1 is available in Lutris.

The releases of D9VK alone will be forever outdated. Now, it's bundled with DXVK.

I recommend you to use this: https://git.froggi.es/doitsujin/dxvk/-/jobs
It's compiled with the latest commits.

Edit: also, update your driver, it's oudated too (5 months old!)

I tried with DXVK only and I see the progress.

Only this glitch is still happening in the medium quality preset:
image

Also this error eppeared randomly while playing when I increased graphic quality a bit:
image

When I set high graphic quality preset the same out of memory error eppeared:
image

I'll try to update my drivers and try again

Please use native d3dcompiler and d3dx9s

Please use native d3dcompiler and d3dx9s

I added d3dcompiler as native but I don't have d3dx9s in the autocomplete list, I added it anyway, is that ok?
image

In medium quality still seeing the black spots on the terrain, in high quality I see the same out of memory error:
image

In my case, I don't have you error message. The game just crashes during the shaders optimization.
More specifically, it crashes when "Lightning" and "Dynamic Shadows" are set to high (pic)

In my case, I don't have you error message. The game just crashes during the shaders optimization.
More specifically, it crashes when "Lightning" and "Dynamic Shadows" are set to high (pic)

To see the error message you have to run the game in wondowed mode, it seems to be the same problem

The grass is fixed!

But the game still crashes when "Lightning" and "Dynamic Shadows" are set to high, so I leave it open.

Is there a trace for that issue?

Hello, Good night, Solved in which version of DXVK ?, I still have rendering problems:

BF2-Print03

Thanks Neros, have a nice day

I tested it here and... it didn't work for me :(

2020-02-24-123559_1440x900_scrot

You are right, it's not fixed. Maybe I was dreaming :-(

Everything looks good now 🥳

@NerosTie I still get the crash on DXVK 1.6 when the graphics are set to high, also tried the latest #1259 buid, but the same happens.
image

If you want to try yourself this is the game installer I use:
https://drive.google.com/uc?id=1jBCMUz3LYQpVyYC4rDwdwxG1OJP3a6x4&export=download
With this launcher:
https://www.bf2hub.com/home/downloads.php

You can use the launcher to run the game in window mode, that shows the error instead of just crashing to desktop

Open a new issue, mine is fixed. Yours is not related, so I'm closing this one.

I am seeing weird crashes for ages with certain Video settings. See my winehq bug report: https://bugs.winehq.org/show_bug.cgi?id=46247
Now trying to see what configs do work.
Using wine-staging 6.6 and latest dxvk (1.81) on Fedora 33.

K0bin commented

It's a different bug, make a new issue for that and provide the necessary info to debug it.

That bug report on WineHQ doesn't even use DXVK according to the logs.