Running out of Memory


For quite some time now, I have been trying to figure out a solution to my problem. I am running out of memory, storing PShape objects. Currently, I am adding around 250,000 child shapes to a main PShape object that gets draw each frame. I have noticed that adding a child to a PShape object saves that instance of the shape, so is there a way to get it to just copy the geometry of the shape instead? Or is there a way to draw the shapes to a PGraphics instead and simply copying the camera and drawing it to the PApplet?