Skip to content

Upgrade meshopt_decoder.module.js to 0.22 #31449

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

Merged
merged 1 commit into from
Jul 20, 2025
Merged

Conversation

zeux
Copy link
Contributor

@zeux zeux commented Jul 19, 2025

This brings in fixes and latency optimizations for WebWorkers, and minor optimizations in the WebAssembly code.

The file is taken as is from GH zeux/meshoptimizer@v0.22.

Current JS size: 24.9 KB, 6.4 KB gzipped
New JS size: 24.8 KB, 6.4 KB gzipped (no significant change)

Note: as of this writing, the latest official version is actually v0.24, but v0.22 is the last version that does not support vertex decoder v1. Vertex decoder v1 is currently not supported by glTF ecosystem, and v0.24 file is ~1 KB larger post-gzip (projected to be ~1.5 KB in v0.25). 1-1.5 KB is not that much but I figured it's safer to update to the last official smallest version for now. We can upgrade to v0.25 when that's released if that becomes relevant for glTF.

This brings in fixes and latency optimizations for WebWorkers, and
minor optimizations in the WebAssembly code.

The file is taken as is from GH zeux/meshoptimizer@v0.22
@Mugen87 Mugen87 added this to the r179 milestone Jul 20, 2025
@Mugen87 Mugen87 merged commit cf58904 into mrdoob:dev Jul 20, 2025
8 checks passed
@zeux zeux deleted the meshopt-0.22 branch July 20, 2025 23:01
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

Successfully merging this pull request may close these issues.

2 participants