We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I have a sketch in which I render some images and then I compare them. The images are kept in memory, to avoid writing thousands of images on the hdd. The sketch uses OpenGL, and I was hoping to parallelize this rendering offscreen with a new PGraphics object. But, it seems that OpenGL can only have one renderer per thread...
Can you give me any advices? Can it be done creating instances of PApplet each one with its own renderer?
Answers
We can instantiate as many PApplet sketches as we want.
However, only 1 of them can use a OpenGL renderer. The others gotta stick w/ JAVA2D!
In my Linux system, it simply crashes when a 2nd OpenGL instance is created.
Other folks just reported big slowdown instead!
Nonetheless, if you wanna know about how to have more than 1 PApplet, take a look below:
http://forum.processing.org/two/discussion/7202/controlp5-controlwindow-and-controlp5frame