# Multiple readback operations

**URL:** <https://discourse.processing.org/t/multiple-readback-operations/44760>\
**Category:** p5.js\
**Created:** [July 12, 2024, 6:20pm UTC](https://discourse.processing.org/t/multiple-readback-operations/44760 "2024-07-12T18:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexAbS](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@AlexAbS](https://discourse.processing.org/u/AlexAbS)\
**Post date:** [July 12, 2024, 6:20pm UTC](https://discourse.processing.org/t/multiple-readback-operations/44760/1 "2024-07-12T18:20:05Z")

</div>

Hello. I am using p5.js and notice chrome notification about “Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true”. How can I pass in p5js canvas a context option willReadFrequently: true?

---

<div class="post-metadata">

**Author:** ![davepagurek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/davepagurek/32/17535_2.png) [@davepagurek](https://discourse.processing.org/u/davepagurek)\
**Post date:** [July 26, 2024, 12:18pm UTC](https://discourse.processing.org/t/multiple-readback-operations/44760/2 "2024-07-26T12:18:23Z")

</div>

p5 doesn’t easily have a way to set this, but also setting this option means that hardware acceleration for other rendering operations will be disabled. While it might speed up loadPixels()/updatePixels(), it will probably also slow down any other p5 drawing functions, so p5 hasn’t given a way to set it as it will likely still slow down the sketch overall. The warning can be safely ignored.
