Large image displaying decreases frameRate

Hi,

When I’ve been using Processing I usually don’t work with images, so I decided to experiment a bit. However, when I started to move the image the program started to get really slow (10 fps).

The image size is 2100 x 2100 and displayed to scale. Interestingly, when I the render to P2D I got 20x better FPS than the default renderer, which seems like a lot even though P2D usually does render faster.

Is there a way I can boost the program’s performance while still using the Processing renderer?

Thanks!

Could you share something about how, specifically, you are doing this? Are you using scale(), or PImage.resize() – are you udoing teh scaling with a buffer PImage / PGraphics, etc.

This could matter a lot for performance.