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 and WebWorkers #19

Open
johannbuscail opened this issue Jun 30, 2021 · 1 comment
Open

Use OffScreenCanvas and WebWorkers #19

johannbuscail opened this issue Jun 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@johannbuscail
Copy link
Member

johannbuscail commented Jun 30, 2021

Issue

Slowness

Solution

Instead of using just the main thread with a canvas that needs to render,
It would be faster to use a WebWorker to create another thread and use an OffScreenCanvas to not render everything when it's not needed.

Related:

fabricjs/fabric.js#3941
fabricjs/fabric.js#5231

https://caniuse.com/?search=offscreencanvas
https://stackoverflow.com/questions/50799546/use-fabricjs-and-offscreencanvas-to-work-with-workers-html5
https://medium.com/samsung-internet-dev/offscreencanvas-workers-and-performance-3023ca15d7c7
https://bugs.chromium.org/p/chromium/issues/detail?id=923007

@johannbuscail johannbuscail added the enhancement New feature or request label Jun 30, 2021
@nmitic
Copy link

nmitic commented Sep 11, 2024

Any news about supporting this one?

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

No branches or pull requests

2 participants