protonscr

Subnautica stalls for ~5000 miliseconds while in game since wine-6.0~rc5

dxvkclosed wine bugnot our bug
doitsujin/dxvk#1892 · opened 2021-01-09 by braiam · updated 2021-01-14 · 7 comments · github
Bbraiam 2021-01-09 github

After upgrading to wine-staging 6.0~rc5 with dxvk 1.7.3 or master, Subnautica stalls for 5 seconds and shows a red-hearing message that reads

0024:err:sync:RtlpWaitForCriticalSection section 000000018168C330 "?" wait timed out in thread 0024, blocked by 0000, retrying (60 sec)

Downgrading to rc4 is a workaround. Wine without dxvk doesn't show this behavior. VSYNC on and off shows the issue.

Software information

Subnautica, 1080p, High settings on everything, off motion blur

System information

  • GPU: RX 590
  • Driver: amdgpu
  • Wine version: 6.0~rc5 and 6.0~rc6
  • DXVK version: master

Apitrace file(s)

  • Using apitrace make the game unplayable at 7 FPS which makes it very difficult to know if the issue appears.

Log files

Ddoitsujin maintainer 2021-01-10 github

How is a performance regression after a wine update related to DXVK exactly when the exact same DXVK version works fine on another wine build?

Bbraiam 2021-01-10 github

@doitsujin consider this an early canary. Wine without dxvk doesn't have any indication off issues (in my case, even the performance isn't affected). Meanwhile, using dxvk has a very noticeable and reproducible issue. Once wine 6.0 hits more usable channels, users would notice that only when using dxvk, these stalls occur, and will reach the logical conclusion that dxvk is responsible.

As a wine client, this library is affected by the actions of the host program. I believe it would be useful that developers of this project are aware of changes of wine and if they need the host to make some changes, they communicate directly with wine developers.

I would also report a bug on Wine if there was any issue with the latest staging version, but I can't find any issue to report that doesn't involve dxvk. Wine developers would understandably recommend me to report this issue with dxvk.

Bbraiam 2021-01-10 github

@Iglu47 I would have to compile wine-rc5 without that patch to verify that is the one causing issues with dxvk. I'm going to do that next.

Mmisyltoad 2021-01-10 github

This simply isn't our bug.

IIglu47 2021-01-14 github

@Iglu47 I would have to compile wine-rc5 without that patch to verify that is the one causing issues with dxvk. I'm going to do that next.

and is there any result?
just ../wine-staging/patches/patchinstall.sh DESTDIR="." --all -W ntdll-NtAlertThreadByThreadId

or maybe alternatively: some users report that applying this patch - helps
https://bugs.winehq.org/show_bug.cgi?id=50448#c15
wget https://bugs.winehq.org/attachment.cgi?id=69112 -O 69112.patch

Bbraiam 2021-01-14 github

@Iglu47 Yes, applying both patches seems to fix the issue (comment 5 and 15). Will close this for now and report my finding upstream.

Upstream links