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

Use OffscreenCanvas if available #10039

Closed
aaronshaf opened this issue Sep 4, 2018 · 5 comments
Closed

Use OffscreenCanvas if available #10039

aaronshaf opened this issue Sep 4, 2018 · 5 comments
Labels

Comments

@aaronshaf
Copy link

"Now you can render your graphics off the main thread with OffscreenCanvas"

https://developers.google.com/web/updates/2018/08/offscreen-canvas

@timvandermeij
Copy link
Contributor

Interesting find. If we can feature-detect this, we could try benchmarking this.

@websirnik
Copy link

@phal0r
Copy link

phal0r commented May 19, 2019

This should give a performance boost for Chrome since in my observations rendering takes some time, especially when rendering many different pdfs including changing zoom levels. Is there already a plan to integrate this feature?

@benbro
Copy link
Contributor

benbro commented Feb 26, 2022

OffscreenCanvas is in origin trial in Firefox.

@timvandermeij
Copy link
Contributor

timvandermeij commented Apr 10, 2022

Closing since we now use OffscreenCanvas if it's available (by feature detection). This was introduced by PR #14754 for image rendering performance improvements and enabled upstream in Firefox for PDF.js in https://bugzilla.mozilla.org/show_bug.cgi?id=1763330. If it's useful to use in more places, individual issues should be opened for those.

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

No branches or pull requests

5 participants