[object Object]

← back to Exo

t

e698ef6ab1a38a6d22b9bd707831e183804ee652 · 2024-12-11 21:39:27 +0000 · Alex Cheema

Files touched

Diff

commit e698ef6ab1a38a6d22b9bd707831e183804ee652
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Wed Dec 11 21:39:27 2024 +0000

    t
---
 .github/optimize_performance.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/optimize_performance.sh b/.github/optimize_performance.sh
index b39ca2b5..706e40b0 100755
--- a/.github/optimize_performance.sh
+++ b/.github/optimize_performance.sh
@@ -39,10 +39,13 @@ safe_sysctl "kern.memorystatus_purge_on_warning" 0
 safe_sysctl "kern.memorystatus_purge_on_critical" 0
 safe_sysctl "kern.timer.coalescing_enabled" 0
 
-# Only try to set iogpu settings if they exist
-if sysctl -n kern.iogpu >/dev/null 2>&1; then
+# Check for integrated GPU using system_profiler
+if system_profiler SPDisplaysDataType | grep -q "Chipset Model: Apple"; then
+  log "Apple Silicon GPU detected, configuring GPU settings..."
   safe_sysctl "kern.iogpu.dynamic_memory_management" 0
   safe_sysctl "kern.iogpu.dynamic_memory_management_debug" 0
+else
+  log "Notice: Apple Silicon GPU not detected, skipping GPU-specific optimizations"
 fi
 
 # Metal and GPU optimizations

← 26351e71 t  ·  back to Exo  ·  t 61c09631 →