diff --git a/README.md b/README.md index 7dcabdda..5de242f0 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,7 @@ the Wine prefix. Removing the option will revert to the previous behavior. | noforcelgadd | | Disable forcelgadd. If both this and `forcelgadd` are set, enabled wins. | | oldglstr | PROTON_OLD_GL_STRING | Set some driver overrides to limit the length of the GL extension string, for old games that crash on very long extension strings. | | vkd3dfl12 | | Force the Direct3D 12 feature level to 12, regardless of driver support. | +| hidenvgpu | PROTON_HIDE_NVIDIA_GPU| Force Nvidia GPUs to always be reported as AMD GPUs. Some games require this if they depend on Windows-only Nvidia driver functionality. See also DXVK's nvapiHack config, which only affects reporting from Direct3D. | | | WINE_FULLSCREEN_INTEGER_SCALING | Enable integer scaling mode, to give sharp pixels when upscaling. | | cmdlineappend:| | Append the string after the colon as an argument to the game command. May be specified more than once. Escape commas and backslashes with a backslash. | | nowritewatch | PROTON_NO_WRITE_WATCH | Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | diff --git a/proton b/proton index 21edced1..a0e5cfe5 100755 --- a/proton +++ b/proton @@ -651,6 +651,7 @@ class Session: self.check_environment("PROTON_FORCE_LARGE_ADDRESS_AWARE", "forcelgadd") self.check_environment("PROTON_OLD_GL_STRING", "oldglstr") self.check_environment("PROTON_NO_WRITE_WATCH", "nowritewatch") + self.check_environment("PROTON_HIDE_NVIDIA_GPU", "hidenvgpu") if "noesync" in self.compat_config: self.env.pop("WINEESYNC", "") @@ -678,6 +679,9 @@ class Session: if not "VKD3D_FEATURE_LEVEL" in self.env: self.env["VKD3D_FEATURE_LEVEL"] = "12_0" + if "hidenvgpu" in self.compat_config: + self.env["WINE_HIDE_NVIDIA_GPU"] = "1" + if "SteamGameId" in self.env: if self.env["WINEDEBUG"] != "-all": lfile_path = os.environ["HOME"] + "/steam-" + os.environ["SteamGameId"] + ".log"