Hey everyone,
my question is about the copy function. As many before I tried to recreate the tutorial of Tim Rodenbröcker about kinetic typography with p5.
It runs very slow (3fps) in the current p5 version 1.3.1, but when I change the version to 0.9.0 it reaches up to 60fps. The performance drop appeared since version 0.10.0. In the release notes on github for version 0.10.0 I found out, that “copy() now works with 2D and WebGL”. I am not sure if it has something to do with that, but maybe it is a starting point.
Then I noticed that, while I haven’t dug further, loadPixels’ implementation might have changed. If you add pg.loadPixels to the above sketch, performance drops significantly. I believe that for context.drawImage there is no need to do loadPixels and this is causing the performance issue. Can you open an issue on github, link this forum and suggest a change?