Resizing a PGraphics

I’ve seen there’s been a previous post about this and thats great as the answer has technically already been posted, however I wanted to know what limitations this might have if i’m planning on making use of resize every frame the canvas elements, for example does this cause memory issues as lot of PGraphics elements are created?

https://forum.processing.org/one/topic/resize-the-pgraphics.html

i wounder if this refresh the ram or not

removeCache(offscreen);
or 

removeCache(img);

https://forum.processing.org/two/discussion/6898/how-to-correctly-release-pimage-memory

1 Like

I think im probably approaching this wrong as there are alternatives if flexible size is required such as textures

Hello,

I have had memory problems in the past and used VisualVM to visualize these:

:)

1 Like