I just wrote a very short program to learn something about custom images and found out that the FPS drops drastically. I know what I’ve done can be done without the image but this is just a experiment. Here’s the code
function setup()
Y=HEIGHT/2
parameter.number("FPS",0,60,60)
end
function draw()
background(0, 0, 0, 255)
Y = Y + 1
img=image(WIDTH,HEIGHT)
setContext(img)
pushStyle()
fill(255, 0, 0, 255)
ellipse(WIDTH/2,Y,40)
popStyle()
setContext()
sprite(img,WIDTH/2,HEIGHT/2)
FPS = .9*FPS+.1/DeltaTime
end