Loading...
Logo
Processing Forum

multi core java opengl

in General Discussion  •  Other  •  2 years ago  
Hi there

I have been testing my quad core computer to see what was it's limit on the openGl and processing 
( you can see me playing here :  http://www.ponnuki.net/2011/03/3d-tripping/

While trying to write memory hungry gl code (with few loops of loops of cubes) and multiple rotation
I was able to get few thousands block dancing around with really good fps - but realized that it was
only using 1 core (and when it maxed out on one core it would start to be losing fps). 

Now I know my code was cpu hungry for no reason - but I would like to know if it's possible 
to access the other cores simply in processing or I would need to jump in more java coding - 
or if java and openGl is simply not multi core able. 

thanks ! 

Replies(2)

Java coding: see threads and concurrent programming.
I'm also really keen on understanding more about how to spread some of processing (and OpenGl's) load across multiple cores. We discussed it briefly in this thread too:  http://forum.processing.org/topic/getting-started-with-glgraphics

I haven't been able to make much progress on this, but I will put more effort behind it for some of my next projects (thanks for the direction phi.lho!), Perhaps if anyone else has any experiences in multi core/thread processing sketches, they could share them here.

Jim