Skip to main content
Participating Frequently
August 13, 2024
Question

"GetImageData", less resource consumption

  • August 13, 2024
  • 1 reply
  • 257 views

Hello all. I'm a total beginner with coding. 

 

My canvas projects runs well with no issues, but when testing in-browser, I'm met with multiple warnings: "Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true" (see attached). No idea how to do this.

 

The closest lead I've found is from this forum, with the answer "You need to download and link local the create.js library". How is this done? I've tried opening the local JS file and cannot find any "canvas.getContext" or "getImageData" lines (see attached).

 

Limiting resource consumption is my main goal here. I know this warning can ultimately be ignored, but my project is full of art and animations, and the project feels as if it's struggling the longer it runs. Do I have no other choice but to cut content out? 

 

Any help is appreciated. 

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 14, 2024

your first image shows a warning, not an error.  heed the warning if you see a performance issue.

 

p.s. copy and paste screenshots into replies, do not attach them.