Upgrade meshopt_decoder.module.js to 0.22 #31449
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.