proton: Hide Intel GPU for Rivals of Aether II.

CW-Bug-Id: #24514
This commit is contained in:
Paul Gofman 2024-11-22 17:17:51 -06:00
parent d32f73f550
commit 0b1b644ceb

7
proton
View File

@ -1165,6 +1165,10 @@ def default_compat_config():
"257420", #Serious Sam 4
]:
ret.add("hidevggpu")
if appid in [
"2217000", #Rivals of Aether II
]:
ret.add("hideintelgpu")
if appid in [
"1341820", #As Dusk falls
@ -1481,6 +1485,7 @@ class Session:
self.check_environment("PROTON_OLD_GL_STRING", "oldglstr")
self.check_environment("PROTON_HIDE_NVIDIA_GPU", "hidenvgpu")
self.check_environment("PROTON_HIDE_VANGOGH_GPU", "hidevggpu")
self.check_environment("PROTON_HIDE_INTEL_GPU", "hideintelgpu")
self.check_environment("PROTON_SET_GAME_DRIVE", "gamedrive")
self.check_environment("PROTON_SET_STEAM_DRIVE", "steamdrive")
self.check_environment("PROTON_NO_XIM", "noxim")
@ -1539,6 +1544,8 @@ class Session:
if "hidevggpu" in self.compat_config:
self.env["WINE_HIDE_VANGOGH_GPU"] = "1"
if "hideintelgpu" in self.compat_config:
self.env["WINE_HIDE_INTEL_GPU"] = "1"
if "hidenvgpu" in self.compat_config and "forcenvapi" not in self.compat_config:
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"