dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Call of Duty: MWR - Graphic glitches during mission "blackout"

Open gabriele2000 opened this issue 3 years ago • 28 comments

Software information

Call of Duty - Modern Warfare Remastered Maximum settings except a few things. I reckon the glitch goes away if I lower the quality to minimum.

System information

  • GPU: Nvidia GTX 1050TI
  • Driver: 520.56.06
  • Wine version: 7.20
  • DXVK version: 2.0 - Release

Apitrace file(s)

Not created, yet.

Log files

h1_sp64_ship_dxgi.log h1_sp64_ship_d3d11.log

Video

gabriele2000 avatar Nov 16 '22 16:11 gabriele2000

Does it also happen without the dxvk config options?

Blisto91 avatar Nov 16 '22 17:11 Blisto91

info: d3d11.samplerAnisotropy = 16

Try it without that option. It can definitely break games.

If that doesn't work, please make an apitrace.

K0bin avatar Nov 16 '22 18:11 K0bin

info: d3d11.samplerAnisotropy = 16

Try it without that option. It can definitely break games.

If that doesn't work, please make an apitrace.

I'll try it EDIT: It doesn't fix anything

gabriele2000 avatar Nov 16 '22 18:11 gabriele2000

If that doesn't work, please make an apitrace.

With DXVK the game is unbearably slow, it's even hard to see any glitch. Without DXVK "directX error" and I cannot apitrace anything.

gabriele2000 avatar Nov 16 '22 18:11 gabriele2000

With DXVK the game is unbearably slow, it's even hard to see any glitch.

Doesn't matter, we need the apitrace.

K0bin avatar Nov 16 '22 18:11 K0bin

With DXVK the game is unbearably slow, it's even hard to see any glitch.

Doesn't matter, we need the apitrace.

Even if it's with DXVK? Ok then, let's do it.

gabriele2000 avatar Nov 16 '22 18:11 gabriele2000

Apitrace

gabriele2000 avatar Nov 17 '22 01:11 gabriele2000

I'm about to try and record another apitrace, this exact type of glitches are present in other levels. This level is faster to load, less useless frames will be captured and it's more "downloadable" for you, and easier to upload for my capped data.

gabriele2000 avatar Nov 19 '22 22:11 gabriele2000

The shadows are the problem. If I turn them off the glitches disappear. Why?

gabriele2000 avatar Nov 20 '22 23:11 gabriele2000

Can you post some screenshots? The apitrace looks fine.

image

K0bin avatar Nov 20 '22 23:11 K0bin

Can you post some screenshots? The apitrace looks fine.

image

Yeah, the glitch disappear when I record the apitrace, that's just a bad joke. Anyway, I have to try with a recent version of the game, I guess it's an issue with the game.

gabriele2000 avatar Nov 21 '22 14:11 gabriele2000

Adding to the issue that i can reproduce it ingame. Haven't found it to be a regression as it was the same with dxvk 1.0. The issue appears when you have shadows turned on plus "CACHE SUN SHADOW MAPS" turned off. If you turn off shadows it seems to go away and if you have shadows on then turning on "CACHE SUN SHADOW MAPS" also seemed to make it go away.

This is on a R9 380

Blisto91 avatar Nov 24 '22 20:11 Blisto91

turning on "CACHE SUN SHADOW MAPS" also seemed to make it go away.

Jesus, that option will just use so much VRAM that'll kill my smooth performance... Anyway, regression, how? What's exactly the culprit, DXVK-wise, I mean.

gabriele2000 avatar Nov 24 '22 20:11 gabriele2000

Anyway, regression, how?

No i meant it isn't a dxvk regression as it appeared in even the oldest dxvk versions i tried.

What's exactly the culprit, DXVK-wise, I mean.

No idea as i have no technical knowledge about this and just try to help testing :grin: Also when it's buggy in this game section it has a tendency to freeze my entire graphical output so i had to force down my pc quite alot when testing this lol.

Blisto91 avatar Nov 24 '22 20:11 Blisto91

Anyway, regression, how?

No i meant it isn't a dxvk regression as it appeared in even the oldest dxvk versions i tried.

What's exactly the culprit, DXVK-wise, I mean.

No idea as i have no technical knowledge about this and just try to help testing grin Also when it's buggy in this game section it has a tendency to freeze my entire graphical output so i had to force down my pc quite alot when testing this lol.

I enabled the other cache thing too, I had to lower the shadows to "medium" because with DXVK you need to leave some room...

EDIT: Nevermind, I'd gladly see this fixed somehow, as the shadow spot precache tanks the FPS by a lot.

gabriele2000 avatar Nov 24 '22 21:11 gabriele2000

Yes i have reproduced this issue on my R9 380. Tho it is a bit annoying since it also has a tendency to hang my GPU so had to force reboot quite a few times. I don't have any technical knowledge to begin digging deeper into it but I've tried various config options and old versions without luck so far. Will also try to check it out on the Nvidia setup or Steam Deck.

Blisto91 avatar Nov 29 '22 10:11 Blisto91

@K0bin I've managed to trace more glitches, while trying to replay the trace I noticed strange stuff:

  • The frames with the glitches are being completely skipped
  • The last frame has a gigantic number of draw-calls, like 20 frames were being combined, even more.

I'm uploading the trace now, meanwhile, could you please explain this to me?

EDIT: I forgot to mention that the latest nvidia driver (525.85.05) has corrected just one "terrain glitch", the one that I was showing in the video on the first comment.

https://mega.nz/file/Q8MmUAzT#zwXUJHzkko1RRhz62O1Vm1Un0vgPB10DqiGd0m413hA

gabriele2000 avatar Feb 01 '23 22:02 gabriele2000

Your trace crashes on replay but i managed to get one myself after playing at 0.4fps for half an hour. Sadly it doesn't reproduce with it. Renderdoc also makes the game crash on start. Only clue i've found is that it seems to be a old regression in https://github.com/doitsujin/dxvk/commit/8b5db80fbd3151084e5efbf32933cae13d5e399d

Blisto91 avatar Feb 11 '23 17:02 Blisto91

How did you get this info?

On Sat, 11 Feb 2023, 18:21 Blisto91, @.***> wrote:

Your trace crashes on replay but i managed to get one myself after playing at 0.4fps for half an hour. Sadly it doesn't reproduce with it. Renderdoc also makes the game crash on start. Only clue i've found is that it seems to be a old regression in 8b5db80 https://github.com/doitsujin/dxvk/commit/8b5db80fbd3151084e5efbf32933cae13d5e399d

— Reply to this email directly, view it on GitHub https://github.com/doitsujin/dxvk/issues/3073#issuecomment-1426830626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC47ERND3FWQBEEYAPHEG4DWW7DAXANCNFSM6AAAAAASCOLYDY . You are receiving this because you authored the thread.Message ID: @.***>

gabriele2000 avatar Feb 11 '23 18:02 gabriele2000

Slow and painful testing (mostly because it has a tendency to hang my GPU)

Blisto91 avatar Feb 11 '23 18:02 Blisto91

Yeah but did you inspect the trace to find it?

On Sat, 11 Feb 2023, 19:17 Blisto91, @.***> wrote:

Slow and painful testing (mostly because it has a tendency to hang my GPU)

— Reply to this email directly, view it on GitHub https://github.com/doitsujin/dxvk/issues/3073#issuecomment-1426843955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC47ERKXPO4VKA6J2EOAOATWW7JU5ANCNFSM6AAAAAASCOLYDY . You are receiving this because you authored the thread.Message ID: @.***>

gabriele2000 avatar Feb 11 '23 18:02 gabriele2000

No i tested ingame.

Blisto91 avatar Feb 11 '23 18:02 Blisto91

Slow and painful testing (mostly because it has a tendency to hang my GPU)

You know what's really sad? The only two games that gives me real problems are almost impossible to debug, can't trace them, can't view what's been traced because "yes"...

Heh, nice find by the way! @doitsujin it is possible to try to revert that commit for testing if it solves the problem with those weird two remaster? I hope there's a switch or something in dxvk.conf though.

gabriele2000 avatar Feb 11 '23 22:02 gabriele2000

@doitsujin it is possible to try to revert that commit for testing if it solves the problem with those weird two remaster? I hope there's a switch or something in dxvk.conf though.

Sadly not possible as we don't know what the issue is yet. The commit isn't small and touch alot of d3d11 (also it's ancient)

Blisto91 avatar Feb 11 '23 22:02 Blisto91

Only clue i've found is that it seems to be a old regression in 8b5db80

How did you narrow the issue down to, possibly, this commit?

gabriele2000 avatar Feb 11 '23 23:02 gabriele2000

By gong back to very old versions and noticing it wasn't a issue there. And then afterwards bisect the specific commit it appeared

Blisto91 avatar Feb 12 '23 00:02 Blisto91

@gabriele2000 Are you able to verify that this works with dxvk master?

Blisto91 avatar Oct 21 '24 18:10 Blisto91

@gabriele2000 Are you able to verify that this works with dxvk master?

Once I'll reinstall the two games, I'll let you know. It won't be long until I do, maybe less than one month.

gabriele2000 avatar Oct 21 '24 18:10 gabriele2000

@gabriele2000 Friendly ping

Blisto91 avatar Jan 18 '25 16:01 Blisto91

@gabriele2000 Friendly ping

I'll install the game soon, after the 24th, before the end of the month. Reason: internet cap and I had to upload a ton of stuff those months.

gabriele2000 avatar Jan 18 '25 19:01 gabriele2000