# Processing + egpu (OSX)

**URL:** <https://discourse.processing.org/t/processing-egpu-osx/16733>\
**Category:** Processing\
**Created:** [December 30, 2019, 5:07pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733 "2019-12-30T17:07:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garz](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Garz](https://discourse.processing.org/u/Garz)\
**Post date:** [December 30, 2019, 5:07pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/1 "2019-12-30T17:07:09Z")

</div>

Hi! This is my first post. I´m very exited to learn Processing to make visuals. I have a 2018 MacMini and a Razor CoreX with an Vega 64 as an eGpu. I tried the particles example and the performance is very low. Also i get this message in the console:

```auto
2019-12-30 16:45:45.025 java[15200:2903635] apply_selection_policy_once: 
prefer use of removable GPUs (via net.java.openjdk.cmd:GPUSelectionPolicy->preferRemovable)

```

I check the “prefer external GPU” for Processing but seems like i don´t really get benefits of the power of my eGPU.

Any advise for this type of configuration?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [December 30, 2019, 8:29pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/2 "2019-12-30T20:29:54Z")

</div>

Could you confirm if you were using the P2D or P3D renderer? Something like: `size(400,600,P3D);`

Kf

---

<div class="post-metadata">

**Author:** ![Garz](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Garz](https://discourse.processing.org/u/Garz)\
**Post date:** [December 30, 2019, 10:45pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/3 "2019-12-30T22:45:23Z")

</div>

Thanks for your answer @kfrajer . I´m using this code:  
[https://processing.org/examples/multipleparticlesystems.html](https://processing.org/examples/multipleparticlesystems.html)  
Btw I´m in MacOs Mojave  
If I add P2D or P3D to the size I get better results (more fluid particles) but the console returns this:

```auto
2019-12-30 23:41:21.146 java[18055:3334403] apply_selection_policy_once: prefer use of removable GPUs (via net.java.openjdk.cmd:GPUSelectionPolicy->preferRemovable)
	0 AppKit 0x00007fff31b7c607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1 AppKit 0x00007fff31b799f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2 AppKit 0x00007fff31b7942a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3 libnativewindow_macosx.jnilib 0x00000001248533fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4 ??? 0x000000010a814a88 0x0 + 4471212680
)

```

I will make more tests like check the fps to be sure if i can use my equipment the way i want.

---

<div class="post-metadata">

**Author:** ![Garz](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Garz](https://discourse.processing.org/u/Garz)\
**Post date:** [December 30, 2019, 11:08pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/4 "2019-12-30T23:08:22Z")

</div>

Playing with the particles example. If I load 50 emitters the fps drops to around 35 and that value is exactly the same value with the eGPU and the internal GPU of the MacMini so, I can confirm that Processing is not using the eGPU. 😥

---

<div class="post-metadata">

**Author:** ![Garz](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Garz](https://discourse.processing.org/u/Garz)\
**Post date:** [January 3, 2020, 5:14pm UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/5 "2020-01-03T17:14:42Z")

</div>

Anyone with an eGpu and OSX to test this?  
is there a way to check who is the renderer and the Gfx Card like in Resolume? (see picture)  
This is a breakpoint for me to use Processing. if I can´t use the eGpu i´m forced to see other options… 😢

 ![Resolume ScreenShot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a75d4fd6cea82c4e9eb17023c2cca16352dce759.png)

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 4, 2020, 2:11am UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/6 "2020-01-04T02:11:26Z")

</div>

try run  
[https://gitlab.com/snippets/1926924](https://gitlab.com/snippets/1926924) ,  
but set renderer to P2D or P3D

then some info regarding graphic is shown  
like here:

```auto
System : Windows 10 10.0 amd64
JAVA : C:\Users\ ... \Documents\processing-3.5.3\java rev: 1.8.0_202
OPENGL_VENDOR: NVIDIA Corporation OPENGL_RENDERER: GeForce GT 1030/PCIe/SSE2 OPENGL_VERSION: 4.6.0 NVIDIA 432.00 GLSL_VERSION: 4.60 NVIDIA
user.home : C:\Users\ .....

```

---

<div class="post-metadata">

**Author:** ![Garz](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@Garz](https://discourse.processing.org/u/Garz)\
**Post date:** [January 4, 2020, 9:35am UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/7 "2020-01-04T09:35:39Z")

</div>

Finally! Seems like I´m using the eGpu! The Processing journey begin;)  
Thanxxx!

```auto
System : Mac OS X 10.14.6 x86_64
JAVA : /Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre rev: 1.8.0_20

OPENGL_VENDOR: ATI Technologies Inc. OPENGL_RENDERER: AMD Radeon RX Vega 64 OpenGL Engine OPENGL_VERSION: 4.1 ATI-2.11.21 GLSL_VERSION: 4.10

```

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 4, 2020, 11:17am UTC](https://discourse.processing.org/t/processing-egpu-osx/16733/8 "2020-01-04T11:17:35Z")

</div>

> [@Garz](#):
>
> Processing journey begin;)

wrong syntax?

```auto
processing_journey.begin();

```

good luck for your project and have fun
