Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set willReadFrequently attribute to true? #67

Open
benbro opened this issue Sep 19, 2024 · 0 comments
Open

Set willReadFrequently attribute to true? #67

benbro opened this issue Sep 19, 2024 · 0 comments

Comments

@benbro
Copy link

benbro commented Sep 19, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant