The second performance test is to compare the performance among three ways to copy from one PImage to another with exactly the same size. The first method uses the PImage.copy function. The second method use the arrayCopy function to copy directly from one pixels array to another. The third method uses a linear loop to traverse the pixels array one by one.
Continue reading
Processing Performance Test 1
I try to compare various methods to handle mainly image-based computer graphics in the Processing environment and publish the results for developers’ reference. The first one is a very straightforward test by comparing two ways to modify all pixels in a single PImage object instance.
The first way is nested loops for x and y dimensions and the second way is to traverse the whole pixels array in one linear loop.
Continue reading