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 offscreen canvas #44

Open
jerch opened this issue Feb 7, 2023 · 0 comments
Open

use offscreen canvas #44

jerch opened this issue Feb 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jerch
Copy link
Owner

jerch commented Feb 7, 2023

Following MDN Firefox recently added better offscreen canvas support in v105, which might give us the chance to optimize canvas/bitmap construction a lot by offloading heavy things to a worker:

  • SixelHandler: putImageData creates a perceivable stall for bigger sixels.
  • IIP: base64 decoding is quite expensive.

The SAB security issues are still a concern, as its not clear yet, if we can get that working from an inline worker. An explicit worker as done before could work around that, but is even more tricky to correctly set up, which was the reason in the first place to remove the explicit worker. A solution w'o SABs is prolly not worth the trouble, as the messaging eats precious cycles.

Furthermore Safari is still in bad shape regarding offscreen canvas support, which is a showstopper and would create a lot of code duplication. Also we cannot reshape the renderer being worker driven due to that yet. Hmm.

@jerch jerch added the enhancement New feature or request label Feb 7, 2023
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

1 participant