Skip to content

Commit

Permalink
proton: Add enableamdags compat config option.
Browse files Browse the repository at this point in the history
And enable it for a few games instead of registry overrides.

CW-Bug-Id: #22677
  • Loading branch information
Paul Gofman committed Aug 30, 2023
1 parent c954b31 commit 98ee282
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions proton
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,14 @@ def default_compat_config():
]:
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

class Session:
Expand Down Expand Up @@ -1393,6 +1401,7 @@ class Session:
self.check_environment("PROTON_NO_XIM", "noxim")
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
self.check_environment("PROTON_ENABLE_NVAPI", "enablenvapi")
self.check_environment("PROTON_ENABLE_AMD_AGS", "enableamdags")

if "noesync" in self.compat_config:
self.env.pop("WINEESYNC", "")
Expand Down Expand Up @@ -1509,6 +1518,9 @@ class Session:
if "enablenvapi" in self.compat_config:
self.env["DXVK_ENABLE_NVAPI"] = "1"

if "enableamdags" in self.compat_config:
self.dlloverrides["amd_ags_x64"] = "b"

s = ""
for dll in self.dlloverrides:
setting = self.dlloverrides[dll]
Expand Down

0 comments on commit 98ee282

Please sign in to comment.