0

I'm currently using `Multiple ModelUtil.js` to handle multiple models. (https://github.com/yiskang/MultipleModelUtil)

Currently, the models are loaded sequentially, which causes performance delays when there are many models. (model count is 41)

I want to process (or load) them **in parallel** to reduce the total loading time.

  1. I attempted to wrap the calls in Promise.all, but it did not seem to run them in true parallel.

  2. Tried using async/await with MultipleModelUtil.loadModel, but the function itself is callback-based.

  3. Looked for options in MultipleModelUtil to enable parallel or asynchronous loading, but couldn't find them.

4
  • Please, show a Minimal Reproducible Example that demonstrates the problem. Commented Aug 13 at 2:41
  • @paisanco 85334ddb1564.ngrok-free.app/… When I accessed the link, it loaded 41 models sequentially, which was incredibly slow. I was wondering if parallel processing would speed things up. Commented Aug 13 at 7:08
  • Yes you can load in parallel: aps.autodesk.com/blog/loading-models-parallel Commented Aug 14 at 11:30
  • 1
    MultipleModelUtil.js is not designed for loading models in parallel, because the origin-to-origin alignment relies on the transform from the first loaded model. To load models in parallel, please refer to the information provided by Adam. Or you can fork MultipleModelUtil.js and change promisesInSequence to resolve promises in parallel. Commented Oct 1 at 4:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.