defaults.py: Set Beta Blur and Rim by default

Option still configurable in OCLP settings
This commit is contained in:
Mykola Grymalyuk
2022-05-30 22:38:17 -06:00
parent 22369cd1a8
commit e6034d15e9
2 changed files with 4 additions and 7 deletions

View File

@@ -20,6 +20,8 @@
- Resolve AppleGVACore crashing on MacBookPro11,3 in Monterey 12.4+
- Add Nvidia Web Driver support for Maxwell and Pascal
- Currently running in OpenGL mode, [non-Metal issues](https://github.com/dortania/OpenCore-Legacy-Patcher/issues/108) applicable
- Enable Beta Blur and Rim settings on non-Metal by default
- For slower hardware, disabling may slightly improve performance
## 0.4.5
- Fix AutoPatcher.pkg download on releases

View File

@@ -41,13 +41,8 @@ class generate_defaults:
settings.host_is_non_metal = True
# If a Mac is non-Metal based, Beta Blur is highly recommended
# However on lower end hardware, users may prefer the performance benefits without
if not model.startswith("MacBook") and settings.detected_os >= os_data.os_data.big_sur:
non_metal_args = [
"Moraea_BlurBeta",
"Moraea_RimBeta",
]
for arg in non_metal_args:
if settings.detected_os >= os_data.os_data.big_sur:
for arg in ["Moraea_BlurBeta", "Moraea_RimBeta"]:
# If user explicitly set the blur, don't override
arg_result = subprocess.run(["defaults", "read", "-g", arg], stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
if arg_result not in ["true", "1", "false", "0"]: