OutOfMemory Error when animating with PGraphic images

is the algorithm generating the images too slow to generate them in realtime as the images are needed? or could you generate them in batches? without seeing the code i’m feeling around in the dark but maybe someone else will have a solution for you.