From 2da897616067df8fc3d4323eb216fb974f0694ca Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 18 Jun 2018 09:02:55 -0500 Subject: [PATCH] proton: Always enable Wine esync --- README.md | 1 + proton | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 2295eb54..d68fafb8 100644 --- a/README.md +++ b/README.md @@ -153,5 +153,6 @@ the Wine prefix. Removing the option will revert to the previous behavior. | :-------------------- | :----------------------------- | :----------- | | wined3d11 | PROTON_USE_WINED3D11 | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11. | | nod3d11 | PROTON_NO_D3D11 | Disable d3d11.dll, for games which can fall back to and run better with d3d9. | +| noesync | PROTON_NO_ESYNC | Do not use eventfd-based in-process synchronization primitives. | diff --git a/proton b/proton index 04ab666c..4ac49151 100755 --- a/proton +++ b/proton @@ -65,6 +65,7 @@ else: check_environment("PROTON_USE_WINED3D11", "wined3d11") check_environment("PROTON_NO_D3D11", "nod3d11") +check_environment("PROTON_NO_ESYNC", "noesync") basedir = os.path.dirname(sys.argv[0]) bindir = basedir + "/dist/bin/" @@ -110,6 +111,9 @@ else: env["WINEDLLPATH"] = lib64dir + "/wine:" + libdir + "/wine" +if not "noesync" in config_opts: + env["WINEESYNC"] = "1" + if "PATH" in os.environ: env["PATH"] = bindir + ":" + os.environ["PATH"] else: