Skip to content

Commit

Permalink
proton: Disable hardwarescheduling for some games.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyl committed Nov 11, 2024
1 parent 0e954fc commit ce8192a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proton
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,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 = {
Expand Down Expand Up @@ -1547,6 +1553,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"]

Expand Down

0 comments on commit ce8192a

Please sign in to comment.