We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
updatePixels() updates the pixels of the whole image, right? Is there any change to update only a section of an image to keep performance? I noticed a updatePixels(x,y,w,h) function, but it is "not available with this renderer", so did not work for me.
Thanks in advance and greetz!
Answers
@NATALAN: Which renderer are you using? Can you please provide a simple example sketch?
updatePixels()
may already be optimized where possible -- have you checked the source?If further optimization is possible one idea might be to using image tiling (e.g. breaking your large image into multiple PImages) and only update a given tile. Whether this would have any practical speed-up effect or even be counter-productive partly depends on the size of your images.
For an example, the UnfoldingMaps library uses a tile system.