Skip to content

Commit 803a699

Browse files
committed
Add TeraScale 2 Acceleration
1 parent 88ee0e8 commit 803a699

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
- Big thanks to Jackluke, EduCovas, DhinakG, MykolaG!
3838
- Add DebugEnhancer for better macOS Monterey logs
3939
- DebugEnhancer (1.0.3 rolling - 06-08-2021)
40+
- Add TeraScale 2 Graphics Acceleration to Big Sur
41+
- User configurable, those prone to seizures are recommended to avoid or have another setup the machine due to initial colour strobing before forcing Million Colours on the display with SwitchResX or ResXtreme
4042

4143
## 0.1.6
4244
- Add XHCI UEFI Driver for 3rd Party USB 3.0 Controllers

OpenCore-Patcher.command

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ system_profiler SPHardwareDataType | grep 'Model Identifier'
111111
[f"Set Vault Mode:\t\t\tCurrently {self.constants.vault}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).change_vault],
112112
[f"Allow FireWire Boot:\t\tCurrently {self.constants.firewire_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_firewire],
113113
[f"Allow NVMe Boot:\t\t\tCurrently {self.constants.nvme_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_nvme],
114+
[f"Enable TeraScale 2 Acceleration:\tCurrently {self.constants.terscale_2_patch}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).enable_terascale],
114115
[f"Disable AMFI:\t\t\tCurrently {self.constants.disable_amfi}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).set_amfi],
115116
[f"Set SIP and SecureBootModel:\tSIP: {self.constants.sip_status} SBM: {self.constants.secure_status}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).change_sip],
116117
[f"Allow OpenCore on native Models:\tCurrently {self.constants.allow_oc_everywhere}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_native_models],

Resources/CliMenu.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,5 +493,30 @@ def allow_nvme(self):
493493
self.constants.nvme_boot = True
494494
elif change_menu == "n":
495495
self.constants.nvme_boot = False
496+
else:
497+
print("Invalid option")
498+
499+
500+
def enable_terascale(self):
501+
Utilities.cls()
502+
Utilities.header(["Enable TeraScale 2 Acceleration"])
503+
print("""
504+
Currently TeraScale 2 graphics acceleration is in beta with
505+
some unfortunate bugs on login including strobing colours
506+
until the user forces Million Colours on the Display with
507+
SwitchResX or resXtreme
508+
509+
Users sensitive to seizures should avoid using TeraScale 2
510+
patches or ask someone to handle inital setup to ensure
511+
no issues
512+
513+
Note: Acceleration only applies to macOS Big Sur
514+
""")
515+
516+
change_menu = input("Enable TS2 Acceleration?(y/n): ")
517+
if change_menu == "y":
518+
self.constants.terscale_2_patch = True
519+
elif change_menu == "n":
520+
self.constants.terscale_2_patch = False
496521
else:
497522
print("Invalid option")

Resources/Constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def __init__(self):
8686
self.firewire_boot = False
8787
self.nvme_boot = False
8888
self.disable_amfi = False
89+
self.terscale_2_patch = False
8990

9091
# OS Versions
9192
self.tiger = 8

Resources/SysPatch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ def detect_gpus(self):
362362
self.amfi_must_disable = True
363363
# TODO: Enable TS2 support
364364
elif dgpu_device in PCIIDArray.amd_ids().terascale_2_ids:
365-
if self.constants.detected_os > self.constants.catalina:
365+
# Requires manual permission from user to avoid medical issues
366+
if self.constants.detected_os > self.constants.catalina and self.constants.terscale_2_patch is True:
366367
self.amd_ts2 = True
367368
self.amfi_must_disable = True
368369
if igpu_vendor:

0 commit comments

Comments
 (0)