From d3b7e7b64782cae842cce5cf5c3d833e90a2d122 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Tue, 23 Apr 2024 12:04:11 -0600 Subject: [PATCH] fixup! proton: Limit CPU count for some games. CW-Bug-Id: #23691 --- proton | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proton b/proton index e94fde0b..00d2b7b5 100755 --- a/proton +++ b/proton @@ -1201,7 +1201,9 @@ class Session: self.compat_config.add("forcelgadd") appid = os.environ.get("SteamGameId", 0) - if not "WINE_CPU_TOPOLOGY" in self.env and appid in default_cpu_limit: + if "PROTON_CPU_TOPOLOGY" in self.env: + self.env["WINE_CPU_TOPOLOGY"] = self.env["PROTON_CPU_TOPOLOGY"] + elif appid in default_cpu_limit: self.env["WINE_CPU_TOPOLOGY"] = str(default_cpu_limit[appid]) def init_wine(self):