Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : many copy calls lead to OutOfMemoryError

$
0
0
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

  1.         g.removeCache((PImage) leftG[0]);
  2.         g.removeCache((PImage) rightG[0]);
already  works fine.

Viewing all articles
Browse latest Browse all 1768

Trending Articles