fixup! proton: Limit CPU count for some games.

CW-Bug-Id: #23691
This commit is contained in:
Paul Gofman 2024-04-23 12:04:11 -06:00 committed by Arkadiusz Hiler
parent 0fd8364e06
commit d3b7e7b647

4
proton
View File

@ -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):