Performance issues with PGraphics layers and image() calls

Take a look at my examples in https://discourse.processing.org/t/texture-sampling-nearest-in-p2d-render/48399/2