Skip to content
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

Hitman Absolution: aim mode rendering broken. #479

Closed
angavrilov opened this issue Jul 6, 2018 · 7 comments
Closed

Hitman Absolution: aim mode rendering broken. #479

angavrilov opened this issue Jul 6, 2018 · 7 comments
Labels

Comments

@angavrilov
Copy link

The right mouse button aim mode rendering is affected by a screen wide glitch, making it nearly unusable.

From observation, the behavior of the glitch seems consistent with the depth buffer not being cleared between frames. For instance, walking towards objects makes them render correctly, while walking back makes everything go blank.

Software information

Hitman Absolution (Steam); happens even with lowest settings

System information

  • GPU: GTX 1060
  • Driver: 396.24.02
  • Wine version: wine-3.11 (Staging)
  • DXVK version: 0.61 and master

Apitrace file(s)

I tried to make apitrace about 10 times, but the furthest I could get before crashing was the main menu, and that was on one lucky attempt.

Log files

@doitsujin
Copy link
Owner

doitsujin commented Jul 6, 2018

Can't debug without apitrace. Depth buffer clears have no known bugs though.

@angavrilov
Copy link
Author

Any idea how to make it work? It seems it has a high chance of crashing on transitions between the intro cinematics or menu screens, no matter if I press skip or try to wait it out naturally. Apitrace mentions getting exception c0000005 (access violation it seems) in stderr.

@doitsujin
Copy link
Owner

doitsujin commented Jul 6, 2018

It might be impossible to make it work, but that also means that it's going to be impossible for me to ever do anything about this issue.

@doitsujin
Copy link
Owner

You could try making a D3D11 Renderdoc capture on Windows, it's not going to be the most useful thing in the world but I could at least see what the game is trying to do.

@angavrilov
Copy link
Author

OK, so since intro videos are all in separate files, I removed or replaced all of them that delayed loading the level, and finally got it to run long enough to record a trace with the bug:

https://drive.google.com/file/d/1dIJ4g7HFxOGcu8uk4qaace2Q1kQktDvu/view

When playing back with DXVK the zoom in rendering bug occurs as I see it in actual play. The playback also has some weird flickering on the road etc, but that does not actually happen.

@doitsujin
Copy link
Owner

Thanks, will look into it.

@doitsujin
Copy link
Owner

4d1a70b should fix this.

The issue was indeed a missing depth buffer clear. The game for some reason calls ClearDepthStencilView three times on the same view, requesting to clear only the stencil aspect in the third clear, which would cause DXVK to throw away information about the depth clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants