HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.87k stars 195 forks source link

bad frame time variance in Strange Brigade without latency reduction option #656

Closed aufkrawall closed 9 months ago

aufkrawall commented 3 years ago

When not using the latency reduction option (which is nothing but limiting the number of CPU prerendered frames to a lower value?), the frame time variance basically breaks while being GPU bound: Screenshot_20210505_130056 Screenshot_20210505_130047

Now this is not a tragedy for this individual case, since there is a native Vulkan renderer. Though I wonder if this also affects other games. E.g. also Cyberpunk 2077 is worse than native D3D12 when being GPU bound (whereas not when being CPU bound and CPU bound fps are also very high).

There is this Mesa report: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4689 Though amdvlk is severely CPU bound with VKD3D-Proton in Strange Brigade (and other games), which in return means there is no CPU prerender at all then. So I'm not sure RADV can be blamed here.

Latest Proton Exp. with VKD3D-Proton 2.3.1, Linux-tkg 5.12 futex2, mesa git-master 139226.b13d0eea127.

aufkrawall commented 3 years ago

Not sure if related, but there's also worse frame time variance in Control vs. native D3D12 or DXVK (especially when running): Screenshot_20210615_184714 Screenshot_20210615_184041

This is with 6d1d60e8988fa923eb23972b8915e10aec62e98f .

aufkrawall commented 3 years ago

My frame time variance is fine in both cases with RTX 3060 driver, so this is probably related in some way to RADV.

aufkrawall commented 3 years ago

There are frequent stutter spikes in SotTR on RTX 3060, usually when changing camera perspective or when running: Screenshot_20210908_161100

This is with d2b3238b2dbda67c44ece9672c97bd7dd933eeed and Nvidia 470.62.02 .

aufkrawall commented 2 years ago

@HansKristian-Work In https://github.com/HansKristian-Work/vkd3d-proton/pull/853 you mentioned stutter with Metro Exodus Enhanced . However, I'm not able to confirm this on RTX 3060. With latest vkd3d-proton git-master the game actually runs smoother than with native D3D12 on Windows. =) Screenshot_20211013_190955 (The spike at the end of the graph caused by taking a screenshot. This is btw. with DLSS Q and CAS via vkbasalt)

Edit: Frame rate btw. seems to be really good too. Incredible job! Rendering looks correct to me.

aufkrawall commented 2 years ago

With recent git-master on RTX 3060 (recent Arch Linux packages), Strange Brigade is now smooth also without latency reduction option ticked.

Shadow of the Tomb Raider is smooth on Windows with VKD3D-Proton. In Proton 7.0-3/Experimental, it still has some stutter issues, but apparently not caused by VKD3D-Proton.

Control is still a bit unsmooth vs. native D3D12.

Blisto91 commented 1 year ago

@aufkrawall Was this issue solved? 🙂

aufkrawall commented 1 year ago

@aufkrawall Was this issue solved? 🙂

Would have liked to re-test it, but Control doesn't start for me with the new HDR mod (which I use solely for game/engine fixes, not for actual HDR output) & VKD3D-Proton on Windows.

aufkrawall commented 1 year ago

Correction, the HDR mod actually works with VKD3D-Proton on Windows.

But frame time variance is still not optimal with latest git-master and Nvidia 528.49 vs. native D3D12 or D3D11 -> DXVK: Control_DX12_2023_02_19_18_05_02_882 Control_DX12_2023_02_19_18_02_59_390

I think the same should be visible in MangoHUD on Linux (as I tested it there originally), frame time graph often shows way more variance than there should be.

aufkrawall commented 9 months ago

Control seemed to be fine on RADV with 7800 XT. Closing, as probably not specific enough to justify keeping this open.