mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-14 21:32:40 +03:00
proton: Add enableamdags compat config option.
And enable it for a few games instead of registry overrides. CW-Bug-Id: #22677
This commit is contained in:
parent
eaae654042
commit
7da8928dd9
12
proton
12
proton
@ -1189,6 +1189,14 @@ def default_compat_config():
|
|||||||
]:
|
]:
|
||||||
ret.add("enablenvapi")
|
ret.add("enablenvapi")
|
||||||
|
|
||||||
|
if appid in [
|
||||||
|
"1245620", #Elden Ring
|
||||||
|
"1888160", #Armored Core VI
|
||||||
|
"814380", #Sekiro: Shadows Die Twice
|
||||||
|
"2379390", #Rainbow Six Extraction
|
||||||
|
]:
|
||||||
|
ret.add("enableamdags")
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
class Session:
|
class Session:
|
||||||
@ -1359,6 +1367,7 @@ class Session:
|
|||||||
self.check_environment("PROTON_NO_XIM", "noxim")
|
self.check_environment("PROTON_NO_XIM", "noxim")
|
||||||
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
|
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
|
||||||
self.check_environment("PROTON_ENABLE_NVAPI", "enablenvapi")
|
self.check_environment("PROTON_ENABLE_NVAPI", "enablenvapi")
|
||||||
|
self.check_environment("PROTON_ENABLE_AMD_AGS", "enableamdags")
|
||||||
|
|
||||||
if "noesync" in self.compat_config:
|
if "noesync" in self.compat_config:
|
||||||
self.env.pop("WINEESYNC", "")
|
self.env.pop("WINEESYNC", "")
|
||||||
@ -1475,6 +1484,9 @@ class Session:
|
|||||||
if "enablenvapi" in self.compat_config:
|
if "enablenvapi" in self.compat_config:
|
||||||
self.env["DXVK_ENABLE_NVAPI"] = "1"
|
self.env["DXVK_ENABLE_NVAPI"] = "1"
|
||||||
|
|
||||||
|
if "enableamdags" in self.compat_config:
|
||||||
|
self.dlloverrides["amd_ags_x64"] = "b"
|
||||||
|
|
||||||
s = ""
|
s = ""
|
||||||
for dll in self.dlloverrides:
|
for dll in self.dlloverrides:
|
||||||
setting = self.dlloverrides[dll]
|
setting = self.dlloverrides[dll]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user