Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use Rayon on the web #207

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Use Rayon on the web #207

merged 6 commits into from
Dec 16, 2024

Conversation

mkeeter
Copy link
Owner

@mkeeter mkeeter commented Dec 16, 2024

Using wasm-bindgen-rayon, we can render with the global Rayon thread pool (instead of hand-rolling a tile-based renderer). This is significantly faster!

Unfortunately, as part of the Web Ecosystem™, everything is janky and fragile. The code includes workarounds for the following issues:

@mkeeter mkeeter merged commit 12a9bd5 into main Dec 16, 2024
13 checks passed
@mkeeter mkeeter deleted the web-rayon branch December 16, 2024 18:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant