From ad6d7def0ba8c9a87db61fa432630d7719e746dd Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Mon, 11 Nov 2024 21:26:55 +0200 Subject: [PATCH] proton: Disable hardwarescheduling for some games. --- proton | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proton b/proton index 8c722290..3b4f386d 100755 --- a/proton +++ b/proton @@ -1276,6 +1276,12 @@ def default_compat_config(): ]: ret.add("gamedrive") + if appid in [ + "275850", #No Man's Sky + "2012840", #Portal with RTX + ]: + ret.add("nohardwarescheduling") + return ret default_cpu_limit = { @@ -1551,6 +1557,9 @@ class Session: if "xalia" in self.compat_config and "PROTON_USE_XALIA" not in self.env: self.env["PROTON_USE_XALIA"] = "1" + if "nohardwarescheduling" in self.compat_config and "WINE_DISABLE_HARDWARE_SCHEDULING" not in self.env: + self.env["WINE_DISABLE_HARDWARE_SCHEDULING"] = "1" + if "PROTON_CRASH_REPORT_DIR" in self.env: self.env["WINE_CRASH_REPORT_DIR"] = self.env["PROTON_CRASH_REPORT_DIR"]