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

run the wasm component in web worker #18

Open
mustafa0x opened this issue Feb 5, 2023 · 1 comment
Open

run the wasm component in web worker #18

mustafa0x opened this issue Feb 5, 2023 · 1 comment

Comments

@mustafa0x
Copy link

to avoid blocking the main thread. this should be done for the webcomponent first: https://github.com/DigitalKhatt/digitalkhatt.org/tree/master/examples/webcomponent

@mustafa0x
Copy link
Author

mustafa0x commented Mar 1, 2023

update: this is blocked by https://github.com/DigitalKhatt/visualmetafont/blob/master/src/weblib/quranshaper.h#L200 QuranShaper::shapeText since it takes the canvas ctx, which can't be passed to the worker (error: "CanvasRenderingContext2D object could not be cloned").

edit: this can be perhaps worked around by using OffscreenCanvas, but no safari support in <16.4.

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

No branches or pull requests

1 participant