Skip to content

Commit

Permalink
Merge pull request #73 from R1kaB3rN/cpu_limits
Browse files Browse the repository at this point in the history
Prefer upstream CPU limits for some titles
  • Loading branch information
R1kaB3rN authored May 9, 2024
2 parents 77bc435 + d0a3905 commit 68a40c7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 41 deletions.
1 change: 1 addition & 0 deletions gamefixes-gog/umu-20920.py
13 changes: 5 additions & 8 deletions gamefixes-steam/19900.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
""" Far Cry 2
"""
#pylint: disable=C0103

from protonfixes import util


def main():
""" chokes on more than 31 cores
"""
""" Set CPU limit to upstream core count
See https://github.com/ValveSoftware/Proton/blob/proton_9.0/proton#L1154
util.set_cpu_topology_limit(31)
Code block is intentionally empty because this game exists in EGS and
Ubisoft (umu-19900)
"""
12 changes: 3 additions & 9 deletions gamefixes-steam/20920.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
""" Witcher 2
""" The Witcher 2: Assassins of Kings Enhanced Edition
"""
#pylint: disable=C0103

from protonfixes import util


def main():
""" Witcher 2 chokes on more than 31 cores
""" Witcher 2 chokes on more than 16 cores
Code block is intentionally empty because this game exists in GOG (umu-20920)
"""

util.set_cpu_topology_limit(31)
1 change: 0 additions & 1 deletion gamefixes-steam/298110.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ def main():

util.protontricks('d3dcompiler_43')
util.protontricks('d3dcompiler_47')
util.set_cpu_topology_limit(24)
12 changes: 0 additions & 12 deletions gamefixes-steam/35130.py

This file was deleted.

11 changes: 0 additions & 11 deletions gamefixes-steam/55150.py

This file was deleted.

0 comments on commit 68a40c7

Please sign in to comment.