p5.js
p5.js copied to clipboard
get() and/or pixelDensity() lag since v1.8.0
Topic
This is pretty odd issue – but ever since p5.js version 1.8.0 was released, nearly all of my previous sketches which experiment with visual feedback, using get()
(especially when combined with pixelDesnity()
for upscaling images) – slowed to a halt (even on an M1 Max). I know some significant changes happened to both of these functions in that release, and that there were some sizing issue that got cleared up, however is there a chance an accidental bug still exists in the updates that is causing this?
Example: https://editor.p5js.org/ffd8/sketches/r367LzyK7
- toggle on v1.9.2 and uncomment line 4,
prod = 10
– which lags out on my M1 Max, however with v1.7.2 (or any version prior) it works just fine.
Sure, this is using pixelDensity()
in a weird way – but these sketches worked fine on a mobile phone with normal pixelDensity()
, however if I try updating to later versions, they also lag out... so I believe the issue is with get()
.