I’m working with particles in a flowfield, based on Shiffman’s tutorial in which a lot of lines, circles and text are drawn to the screen on every draw. Normally this runs very smooth with an fps of 60 or more. However, I noticed that ‘suddenly’ all runs gradually started to slow down within seconds. After a minute they’re all down to 1-2 fps, with memory for the process is 1100+ MB while normally being in the ~400’s.
After a lot of debugging the culprit turned out to be a the text size which was dynamically changed for every particle in every run with a textSize(txtSize). This happened with a particlenumber as low as 250. I’d say Processing should be able to handle this without problems. This is my first post here, but I couldn’t find a similar topic.
Could it be some memory leak or is it a known problem that I wasn’t aware of?
SYSTEM: Processing 3.5.3 on Win10 with 16GB RAM