Using getImageData with the willReadFrequently attribute
Closed this issue · 5 comments
Hacksore commented
Should we consider allowing the use of willReadFrequently
to suppress this warning?
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
bribes commented
Seems good!
samzhangjy commented
Any updates on this? I'm currently building a project that includes many SkinViewer
instances and the warning is really annoying.
Hacksore commented
@yushijinhun Could you please have a look at the referenced PR?
Hacksore commented
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.
Hacksore commented
Once @yushijinhun publishes a new version we can bump the utils package to close this out.