Processing + egpu (OSX)

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:

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?

1 Like

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

Kf

1 Like

Thanks for your answer @kfrajer . I´m using this code:
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:

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.

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. :disappointed_relieved:

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… :cry:

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

then some info regarding graphic is shown
like here:

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\  .....
1 Like

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

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
2 Likes

wrong syntax?

processing_journey.begin();

good luck for your project and have fun

2 Likes