From 25a58123a169dec4282b92bc1b24411278d0b65f Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 10 Feb 2022 14:14:36 -0600 Subject: [PATCH] proton: Add noesync,nofsync for Apex Legends --- proton | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 98fed4bd..264d51a0 100755 --- a/proton +++ b/proton @@ -911,6 +911,16 @@ def comma_escaped(s): idx = idx - 1 return escaped +#hopefully short-lived, app-specific workarounds for Proton bugs +def default_compat_config(): + ret = set() + if "SteamAppId" in os.environ: + appid = os.environ["SteamAppId"] + if appid == "1172470": #Apex Legends + ret.add("noesync") + ret.add("nofsync") + return ret + class Session: def __init__(self): self.log_file = None @@ -922,7 +932,7 @@ class Session: "beclient_x64.dll": "b,n", } - self.compat_config = set() + self.compat_config = default_compat_config() self.cmdlineappend = [] if "STEAM_COMPAT_CONFIG" in os.environ: