virtual-background icon indicating copy to clipboard operation
virtual-background copied to clipboard

Set willReadFrequently attribute to true?

Open benbro opened this issue 1 year ago • 0 comments

I'm getting the following in Chrome 129 console when using the Canvas 2D backend in the demo:

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently
attribute set to true.
See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

Should we use const ctx = canvas.getContext('2d', { willReadFrequently: true }) here?

benbro avatar Sep 19 '24 12:09 benbro