Skip to content

Commit

Permalink
fixup! proton: Limit CPU count for some games.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #23691
  • Loading branch information
Paul Gofman authored and ivyl committed May 23, 2024
1 parent 0fd8364 commit d3b7e7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proton
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d3b7e7b

Please sign in to comment.