EDIT I figured out why the the program was slowing down but this has spawned a new question I have with the same title so ill just reword it.
Why does rendering a copied image cripple framerate, for example:
PImage imagez;
void setup() {
size(1600,800, P3D);
imagez = loadImage("ShipBattle.jpg");
imagez.resize(800,800);
background(155);
}
void draw() {
background(155);
PImage copies = imagez.copy();
println(frameRate);
image(copies,0,0);
image(imagez,800,0);
}
This program runs at about 20fps when it should be doing 60, although if I comment out the line:
image(copies,0,0);
The program runs at the full 60fps. So why does rendering a copied image destroy the framerate with seemingly no reason?