virtual-background
virtual-background copied to clipboard
Set willReadFrequently attribute to true?
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?