[SCRIPT] Accelerate All Applications On eGPU - macOS 10.13.4+
 
Notifications
Clear all

[SCRIPT] Accelerate All Applications On eGPU - macOS 10.13.4+  

 of  14
  RSS

mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 4 years ago
 

@goalque Good news! Even with pw4/EFI patch, although SafeEjectGPU shows discrete, setting the preference to removable makes a difference. Tested on Final Cut Pro. Additional GPUSelectionPolicy are default and ignore.

With eGPU connected (no external display, shown as discrete) and default parameter - 750 used for timeline performance.  With preference set to preferRemovable and relaunching app, both 750M + 1070 used for timeline. Export uses CPU-only - unaffected.

Internal display + Purge-Wrangler 4.0.2 patch:

Using the latest web driver which does not support OpenCL/GL on my machine.

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


jangoloti, nando4, itsage and 1 people liked
ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 4 years ago
 

@eightarmedpet Seems like its there, just under our noses and not in the UI, haha. You should also be able to use eGPU on your Ultrafine (just for apps) if everything works on internal display (like in the case of FCP).

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member Moderator
Joined: 4 years ago
 

That’s super exciting to hear, finally!
Currently on holiday but will give this a bash as soon as I’m back. The new Hybrid solution the best to pair with this command?

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix

 
2017 13" MacBook Pro [7th,2C,U] + RX 5700 XT @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.15.4 & Win10 2004 [build link]  


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 4 years ago
 

@eightarmedpet PW4 or EFI hybrid - both should do the trick. Cannot test Pure EFI myself. This setting works best for Metal apps, although the documentation clearly says also affects OpenCL/GL queues.

PS: Enjoy your vacation Smile

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


ReplyQuote
ozzy
 ozzy
(@ozzy)
Estimable Member
Joined: 3 years ago
 

Tried this with my setup - 10.3.5, 2012 MBP 15" Retina with 650m and 1070 eGPU. This is using the original 10.3.x solution though and @fr34k's script, since I can't try the Hybrid EFI method (TB1 macs not supported at the moment). I tried it with Hitman, which is a Metal game, which worked great under 10.2.x but has never worked under 10.3.x. Sadly it still doesn't seem to work. The GPU History is showing that the 1070 is being used and is being maxed out, and the 650m isn't being used, but the actual FPS is more like 4-5 FPS, which clearly is not the performance that I got under 10.2.x (where it ran flawlessly at 1440p). Oh well, will keep trying new methods when people come up with them Smile

2012 15" MacBook Pro Retina (GT650M) [3rd,4C,Q] + GTX 1070 @ 10Gbps-TB1>TB3 (AKiTiO Node) + macOS 10.13 & Win10 [build link]  

ReplyQuote
Luisetepe
(@luisetepe)
Active Member
Joined: 2 years ago
 

@mac_editor Any ways to check what name has tu be used in the command? Im trying with "Unity" (for the game engine) and "CINEBENCH OSX" for benchmarking, but in both situations it says that cant find an application with that name.

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 4 years ago
 

@luisetepe Usually the name of the app in Launchpad or Applications folder would do the trick.

@ozzy I tried testing F1 2016 - metal game too. Never launches. Looks like games will likely need dev-end support. Although my Mac has too many complications to make a generalization. @goalque was able to accelerate Valley benchmark easily with a non NVIDIA dGPU notebook.

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


ReplyQuote
Luisetepe
(@luisetepe)
Active Member
Joined: 2 years ago
 

I think that's the case for apple Apps, for example "TextEdit" works for TextEdit, but i have tried unity, unity3d (seen that the plist file is com.unity3d...), and so on and i cant make it work. I've tried with "blender" for Blender or "photoshop" and "Adobe Photoshop CC 2018" for Adobe's Photoshop, and same result. I've only found some kind of man page for that specific command, but is using only TextEdit as example, so.. :p  https://ss64.com/osx/defaults.html

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 

Also tried Rise of the Tomb Raider (Metal accelerated), with a 2016 13" MBP and GTX 980. Launching the app from the internal screen's dock was possible, only when a headless ghost adapter was plugged in. If wasn't plugged, the game quickly shutted down itself.

defaults write com.feralinteractive.riseofthetombrider GPUSelectionPolicy -string preferRemovable

The man page of SafeEjectGPU says that some values can be specified in the app's Info.plist.

The current automate-eGPU "EFI Boot" does not produce removable key. This can be configured in the future.

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 4 years ago
 

@luisetepe I am preparing a script (set-eGPU.sh) that hopefully handles the problem (can be used to set all applications in /Applications and ~/Applications to use eGPU).

@goalque Confirming that having a non-primary external display (basically headless for this purpose) allowed F1 2016 to run (quite well) on internal display (no mirroring, etc.).

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


ReplyQuote
 of  14