Canvas2D: Multiple readback operations

I’ve noticed in the past few months a new warning in the console when a sketch loads image files: p5.js:80807 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: HTML Standard

And I wonder if anyone has found or knows a way to set the willReadFrequently attribute on the canvas to true?

THANK!

1 Like

Hi @mattobject,

This is maybe of interest for you…

Cheers
— mnse

2 Likes

Hi mnse

Thanks for the link. Looks like I can ignore for now.