Skip to content

Commit

Permalink
proton: Add hideapu config option and enable it for Deathloop.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #23489
  • Loading branch information
Paul Gofman authored and ivyl committed Mar 4, 2024
1 parent 7620dd6 commit d3f7ecf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proton
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,11 @@ def default_compat_config():
]:
ret.add("forcenvapi")

if appid in [
"1252330" #Deathloop
]:
ret.add("hideapu")

return ret

class Session:
Expand Down Expand Up @@ -1305,6 +1310,7 @@ class Session:
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
self.check_environment("PROTON_DISABLE_NVAPI", "disablenvapi")
self.check_environment("PROTON_FORCE_NVAPI", "forcenvapi")
self.check_environment("PROTON_HIDE_APU", "hideapu")

if "noesync" in self.compat_config:
self.env.pop("WINEESYNC", "")
Expand Down Expand Up @@ -1350,6 +1356,9 @@ class Session:
if "hidenvgpu" in self.compat_config and "forcenvapi" not in self.compat_config:
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"

if "hideapu" in self.compat_config:
self.env["WINE_HIDE_APU"] = "1"

if "usenativexinput13" in self.compat_config:
self.dlloverrides["xinput1_3"] = "n"

Expand Down

0 comments on commit d3f7ecf

Please sign in to comment.