Jump to content

Loading Assets from Zip


Recommended Posts

What do you think about loading complex scenes from zip files then reading them with a library such as JSZip?

Wouldn't it be far faster to load 1 zip containing 200 files than to load 200 files individually? (mainly due to avoiding overhead)

Is there a downside to doing that?

Link to comment
Share on other sites

incremental.babylon seems to be loading multiple files individually, correct me if I'm wrong. With that said, I tested the concept of loading 1 zip vs loading multiple files individually outside of babylonjs (which shouldn't matter, again, correct me if I'm wrong).

Loading 1 zip is naturally much faster (at least from my tests) due to avoiding the requests overhead of multiple files (which becomes very apparent the more files you load)

I searched the forum for posts on this solution, and I was surprised to see it wasn't discussed in the past.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...