mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
proton: Add hideapu config option and enable it for Deathloop.
CW-Bug-Id: #23489
This commit is contained in:
parent
7620dd6249
commit
d3f7ecfc32
9
proton
9
proton
@ -1129,6 +1129,11 @@ def default_compat_config():
|
|||||||
]:
|
]:
|
||||||
ret.add("forcenvapi")
|
ret.add("forcenvapi")
|
||||||
|
|
||||||
|
if appid in [
|
||||||
|
"1252330" #Deathloop
|
||||||
|
]:
|
||||||
|
ret.add("hideapu")
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
class Session:
|
class Session:
|
||||||
@ -1305,6 +1310,7 @@ class Session:
|
|||||||
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
|
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
|
||||||
self.check_environment("PROTON_DISABLE_NVAPI", "disablenvapi")
|
self.check_environment("PROTON_DISABLE_NVAPI", "disablenvapi")
|
||||||
self.check_environment("PROTON_FORCE_NVAPI", "forcenvapi")
|
self.check_environment("PROTON_FORCE_NVAPI", "forcenvapi")
|
||||||
|
self.check_environment("PROTON_HIDE_APU", "hideapu")
|
||||||
|
|
||||||
if "noesync" in self.compat_config:
|
if "noesync" in self.compat_config:
|
||||||
self.env.pop("WINEESYNC", "")
|
self.env.pop("WINEESYNC", "")
|
||||||
@ -1350,6 +1356,9 @@ class Session:
|
|||||||
if "hidenvgpu" in self.compat_config and "forcenvapi" not in self.compat_config:
|
if "hidenvgpu" in self.compat_config and "forcenvapi" not in self.compat_config:
|
||||||
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"
|
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:
|
if "usenativexinput13" in self.compat_config:
|
||||||
self.dlloverrides["xinput1_3"] = "n"
|
self.dlloverrides["xinput1_3"] = "n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user