bs-community/skinview3d

Using getImageData with the willReadFrequently attribute

Closed this issue · 5 comments

Should we consider allowing the use of willReadFrequently to suppress this warning?

image

process.js:30 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

Seems good!

Any updates on this? I'm currently building a project that includes many SkinViewer instances and the warning is really annoying.

@yushijinhun Could you please have a look at the referenced PR?

I've opened a PR in the upstream utils repo bs-community/skinview-utils#16. Once we get that merged we can move forward with a fix here.

Once @yushijinhun publishes a new version we can bump the utils package to close this out.