It looks like that dealing with image pixels is extremely slower in Python mode, is it?

edited March 2016 in Python Mode

I am trying to implement metaballs, like this script:

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 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?)



  • edited November 2015 Answer ✓

    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.

Sign In or Register to comment.