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

Fsync testing - experimental #1163

Closed
SveSop opened this issue Aug 12, 2019 · 3 comments
Closed

Fsync testing - experimental #1163

SveSop opened this issue Aug 12, 2019 · 3 comments

Comments

@SveSop
Copy link
Contributor

SveSop commented Aug 12, 2019

Info:

Since Proton 4.11 come with the new "fsync" functionality IF you use a kernel supporting it, i thought i would make a thread here for some experimental testing, as the Steam git thread is (i guess) mostly for Proton/steam testing, and not regular wine.

Proton fsync information:
https://steamcommunity.com/app/221410/discussions/0/3158631000006906163/

Proton fsync issues thread:
ValveSoftware/Proton#2922

Now the great ppl over at TK-Glitch has smacked together the fsync wine patchset that you can download here:
https://github.com/Tk-Glitch/PKGBUILDS/tree/master/wine-tkg-git/wine-tkg-patches/proton

You need both the fsync-staging.patch and fsync-staging-no_alloc_handle.patch if you use this with wine-staging.

PS. wine-staging > 4.11 might throw a fuzz or 3 + some offsets when patching, but seems oki enough. (Or use the attached patch for wine-staging-4.13)

Kernel:

You need either a pre-made kernel with these fsync patches (described in the first link i posted), or you can compile your own kernel with the needed patches.
https://gitlab.collabora.com/krisman/linux/commit/49d200233c5c615149bd30e0fcc66d896e99d65f
https://gitlab.collabora.com/krisman/linux/commit/368eb7d8c86bd2a5db200567e82c477efc1a9502

Task:

Mostly for testing various games/apps without ONLY steam available stuff and perhaps figure out some useful feedback.

Rebased fsync patch for wine-staging-4.13

fsync-staging.patch.gz

@SveSop
Copy link
Contributor Author

SveSop commented Aug 12, 2019

I want to kickstart this with testing "Monster Hunter Online Benchmark" with fsync.

This benchmark can be downloaded from the official site: http://mho.qq.com/cp/a20141201benchmark/en/index.htm or from the slightly faster Guru3D site: https://www.guru3d.com/files-details/monster-hunter-official-benchmark-download.html

Testing with fsync enabled, and a working kernel, the game frequently freezes. That is, the music plays and wine logs fsync lines++ so something is happening... its just the image freezes.

There is no apparent error logged from dxvk, so i am not really sure what happens. So if anyone feel free to do some testing, please do :)

PS.
To actually enable fsync, you need to pop export WINEFSYNC=1 env variable before running.

I run the game with the following variables set:

export WINEDEBUG="-all,+fsync"
export __GL_SHADER_DISK_CACHE_PATH="$HOME/.nv/Monster"
export __GL_THREADED_OPTIMIZATIONS=1
export __GL_SYNC_TO_VBLANK=0
export STAGING_SHARED_MEMORY=1
export STAGING_RT_PRIORITY_SERVER=90
export STAGING_WRITECOPY=1
export WINEFSYNC=1
export WINE_LARGE_ADDRESS_AWARE=1
export DXVK_LOG_LEVEL=debug

@libcg
Copy link
Contributor

libcg commented Aug 12, 2019

This is absolutely not the right place to do this. fsync has nothing to do with DXVK.

@doitsujin
Copy link
Owner

doitsujin commented Aug 12, 2019

what libcg said. Fsync-related issues belong here:
ValveSoftware/Proton#2922

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

No branches or pull requests

3 participants