Replies: 2 comments 1 reply
-
Out of curiosity, do you have a specific use case in mind or are you just wondering if this would be helpful? The reason why I ask is I've thought about providing some sort of helper as part of meshopt_decoder.js to make WebWorker integration easier, but so far it hasn't been necessary - meshopt_decoder runs circles around Basis transcoder and on all data I've tested it usually didn't result in noticeable pauses during glTF file loading, esp. when using Chrome versions that have Wasm SIMD enabled. If you have examples to the contrary I'd be happy to look at them. It should definitely be possible to implement webworkers on top of the decoder .js today, it's just that it's not integrated and so far I haven't seen the need yet. |
Beta Was this translation helpful? Give feedback.
-
Just an update to close this out, but this has been implemented and is available in meshoptimizer 0.18. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the great works on this lib!
It would be very nice if meshopt_decoder.js could implement web worker support (like what BasisLoader did).
It gonna improve decoding performance and reduce freezing a lot, especially on a large file.
Beta Was this translation helpful? Give feedback.
All reactions