PVector causing memory usage

Using VisualVM, I found that the largest consumer of memory appears to be PVectors. As per my previous topic, my animation rendering sketch draws nearly 200 boxes per frame, and a single animation sequence could be as many as 200k frames. This means I rapidly hit the memory usage limit, even after adjusting Processing to allow up to 8GB of memory to be allocated.

The following image is of a sketch's heap that simply involves drawing a box every draw() call.

Now imagine that 200x as bad. The dip is the GC working; unfortunately, it can't quite keep up with the full sketch.

Is anyone having this sort of issue?

It appears that this isn't the only contributor of memory use, but it accounts for the largest portion. (Actual sketch data)

This is really bad.

Answers

Sign In or Register to comment.