Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer upstream CPU limits for some titles #73

Merged
merged 9 commits into from
May 9, 2024
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.