Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
889 stars 158 forks source link

Can't make fastsync to work. #518

Closed rizzini closed 2 years ago

rizzini commented 3 years ago

Kernel: 5.14.6-201-tkg-pds compiled yesterday with _winesync="true". customization.cfg

Wine: wine-6.17.r12.g100f1088 compiled today with _use_staging="false", _use_fastsync="true", _use_esync="false", _use_fsync="false" and _fsync_futex2="false".

I'm running the game with WINE_DISABLE_FAST_SYNC=0.

Full command:

WINE_DISABLE_FAST_SYNC=0 WINEFSYNC=0 WINEESYNC=0 WINEFSYNC_FUTEX2=0 WINEPREFIX=/home/lucas/.wine_d3/ /opt/wine_tkg_fastsync/bin/wine /mnt/archlinux/Diablo\ III/Diablo\ III.exe -launch OnlineService.Matchmaking.ServerPool=Default

winesync module is loaded:

[lucas@archlinux ~]$ ls /dev/winesync
crw-r--r-- 10,243 root 22 set 06:49  /dev/winesync

When I run the game, It only shows wineserver: using server-side synchronization..

wine: using fast synchronization. doesn't show up and lsof /dev/winesync shows me nothing.

Any ideas?

Tk-Glitch commented 3 years ago

wine-6.17.r12.g100f1088

This is a staging build. 100f1088 is the current head of staging. This looks like misconfiguration. That being said, I'm not sure the winesync patchset can even apply on current wine. The patchset has been on hold since 6.10.

rizzini commented 3 years ago

Make sense. The compiled package name didn't add up. I forgot I had ~/.config/frogminer/wine-tkg.cfg in my container. I'm compiling it again right now.. I'll try on 6.10 if it fails. I'll keep this post updated.

rizzini commented 3 years ago

Still no luck. Is it worth pursuing this? I "heard" FUTEX2 has the same performance ATM. You can close if you think it's not worth it.

╭─lucas@archlinux em /opt🔒 levou 2ms
╰─λ /opt/wine_tkg_fastsync/bin/wine --version
wine-6.10.r0.g649385e7d47 ( TkG Plain )
╭─lucas@archlinux em /opt🔒 levou 2ms
╰─λ WINE_DISABLE_FAST_SYNC=0 WINEFSYNC=0 WINEESYNC=0 WINEFSYNC_FUTEX2=0 WINEPREFIX=/home/lucas/.wine_d3/ /opt/wine_tkg_fastsync/bin/wine /mnt/archlinux/Diablo\ III/Diablo\ III.exe -launch OnlineService.Matchmaking.ServerPool=Default
002c:fixme:winediag:LdrInitializeThunk Wine TkG  is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please don't report bugs about it on winehq.org and use https://github.com/Frogging-Family/wine-tkg-git/issues instead.
MESA-INTEL: warning: Haswell Vulkan support is incomplete
0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\nsiproxy": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 1114
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 053A2540, 43) stub
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0100:fixme:ver:GetCurrentPackageId (02F2FEF0 00000000): stub
0024:fixme:mpr:WNetGetUniversalNameW (L"Z:\\mnt\\archlinux\\Diablo III\\Data\\data", 0x00000001, 0032E51C, 0032E518): stub
0108:err:wininet:open_http_connection create_netconn failed: 12029
0108:err:wininet:open_http_connection create_netconn failed: 12029
0108:err:wininet:open_http_connection create_netconn failed: 12029

Nothing at lsof /dev/winesync as well.

CrezyDud commented 3 years ago

WINEFSYNC=0 WINEESYNC=0 WINEFSYNC_FUTEX2=0

CrezyDud commented 3 years ago

y are they set to 0 in your command? SET THEM TO 1 use brain!

rizzini commented 3 years ago

I am not even going to dignify that with a response, @MrSwedish. Call me when you realize what you did wrong there. Take care.

openglfreak commented 3 years ago

Check the permissions of /dev/winesync, they should be at least 644 (rw-r--r-- in ls -l)

rizzini commented 3 years ago

Check the permissions of /dev/winesync, they should be at least 644 (rw-r--r-- in ls -l)

Sadly, the permissions from /etc/udev/rules.d/winesync.rules are being applied correctly. Thanks for the reply.

[lucas@archlinux ~]$ ls -lah /dev/winesync
Permissions   Size User Date Modified Name
crw-r--r--  10,243 root 25 set 09:59   /dev/winesync
Tk-Glitch commented 3 years ago

Still no luck. Is it worth pursuing this? I "heard" FUTEX2 has the same performance ATM. You can close if you think it's not worth it.

futex2 is actually faster :frog: The only benefit of winesync/fastsync is for old/rare games using PulseEvent(). And even then, we now have a workaround allowing those games to run with futex2 (with stuttery videos though, but gameplay is fine). I admit I haven't bothered with winesync for months, when Zeb announced that development was on hold basically. The kernel side might be what's frogged up? I'll try to find some time to dig this up again for experimentation sakes.

CrezyDud commented 3 years ago

I am not even going to dignify that with a response, @MrSwedish. Call me when you realize what you did wrong there. Take care.

did you even try it. take brain!

Lucatir commented 2 years ago

I am not even going to dignify that with a response, @MrSwedish. Call me when you realize what you did wrong there. Take care.

did you even try it. take brain!

Why should he enable featureset that are advertised of being mutually exclusive with the thing he is trying to use? If you are going to be condescending towards him, at least provide your rationale.