Skip to content

Set willReadFrequently attribute to true? #67

Description

@benbro

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions