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

Off main thread #14

Open
Mapiac opened this issue May 23, 2020 · 1 comment
Open

Off main thread #14

Mapiac opened this issue May 23, 2020 · 1 comment
Labels
question Further information is requested

Comments

@Mapiac
Copy link

Mapiac commented May 23, 2020

The docs on this are a bit old and even new ones from Sept say 'we are working on getting paintAPI pant worklets off the main thread.' Is there an update on there this is at? Can we use in production with a pollyfill for Safari? Thanks.

@developit
Copy link
Collaborator

@Mapiac Paint Worklet runs Off Main Thread (on the compositor thread) as of Chrome 81:
https://twitter.com/DasSurma/status/1225106581517299712

There are a number of folks using this polyfill in production. In most cases the polyfill's performance matches or exceeds direct <canvas> usage: the polyfill uses clever hacks in Firefox and Safari that let it draw to multiple locations without image encoding/decoding overhead.

That being said, there are a couple wins still to be had: once Firefox lands support for OffscreenCanvas, the polyfill can detect and use that to decouple paint framerate from the page.

@developit developit added the question Further information is requested label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants