hey you two
Thank you for the resonses. In this simplified version of the program I could indeed use the same PImage over and over again, not creating it 60times per second. In my actual program. the slices have different size, so I could create it with the maximum size and just "copy" the portion I need on the screen.
But the suggestes workaround in the link calling
- g.removeCache((PImage) leftG[0]);
- g.removeCache((PImage) rightG[0]);