We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am trying to implement metaballs, like this script: https://processing.org/discourse/beta/num_1270296593.html
But it always works superslow I rewrote metaballs concept deeply now, but It looks like that dealing with Image pixels (or maybe even looping in general) works way to slower in processing.py. Is it correct and is there any chance to change it, or it will always be a limitation of the mode?
Also, am I right that P2D works slower in python mode than the default one (or is it actually a defaut one?)
Answers
Yes, you're quite right. Anything that has a loop in Python is going to be much, much slower than the equivalent loop in a Java sketch.
For more advanced hackers who want the convenience of Python Mode, but still need speed for an inner pixel-manipulation loop, I wrote this brief tutorial.