dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

[D3D11] [Video] Unity / Escape from Tarkov: Random 5-10 sec hangs with Unheard edition background

Open MadByteDE opened this issue 2 months ago • 3 comments

Software information

Game: Escape from Tarkov (using a modded version called SPTarkov) Engine: Unity Graphics API: D3D11

System information

  • GPU: Nvidia RTX 4070 (happens with AMD GPUs as well)
  • Driver: 580.95.5.0 (happens with earlier versions too)
  • Wine version: GE-Proton10-25
  • DXVK version: v2.7.1-207-ge9ad90562cf4f78

Apitrace file(s)

  • I'll follow up with an apitrace

Log files

proton.log (DXVK_LOG_LEVEL=debug,GST_DEBUG=3)

With DXVK log level enabled, the log shows the following part over and over again:

Image

Video of the issue (Game is frozen for a couple seconds right at the beginning and at the end): https://www.youtube.com/watch?v=kYrRxJBN-p4

The above log file is generated at the same time as the captured video.

This issue only occurs if the users has an Unheard Edition version of the game or uses SPTarkov with an Unheard profile.

The unheard edition menu background appears to be the only background that is a video file, other backgrounds are either static images or 3D scenes not causing any freezes mid raid. It seems like the game does not disable the menu background video while it's not visible / while the user is mid-raid.

When the game hangs, all CPU and GPU load seems to halt (air coolers spinning down etc) until it unfreezes again.

MadByteDE avatar Nov 09 '25 11:11 MadByteDE

Hi there and thank you for the report.

Are you able to get a apitrace of the issue? https://github.com/doitsujin/dxvk/wiki/Using-Apitrace When following the guide while using dxvk when capturing you don't have to set any overrides, just drop the files next to the exe.

Blisto91 avatar Nov 09 '25 12:11 Blisto91

We don't fully support video apis (and there's not much of a plan for it right now, talking months/years of work here given that everything is an undocumented mess and Vulkan video is incredibly difficult to use too) but it's somewhat unlikely that the hangs are actually caused by that given that playback in other Unity games generally works fine, there's like 20 other pieces of software involved here as well.

doitsujin avatar Nov 09 '25 15:11 doitsujin

Fortunately, it's easy to work around this by just changing the background in the game settings...

Forgot to mention it, but I've also seen at least one report of a windows user who was using DXVK on Windows for playing Tarkov for whatever reason & they also had issues with this particular menu background video causing performance drops.. But back then the issue manifested differently as seen in this video (~1 year old): https://www.youtube.com/watch?v=ISbANcFJtJo

I think the real issue here is that the game developer is not disabling / unloading the background video properly when it's not visible (mid-raid).

Unfortunately, BSG is not the nicest dev studio when it comes to supporting issues generally only happening on unsupported platforms or using unsupported tools like DXVK, so no point in asking them to fix it unless you wanna get banned for violating the TOS...

MadByteDE avatar Nov 09 '25 16:11 MadByteDE