Jump to content
  • Advertisement
Sign in to follow this  
Migi0027

DX11 DX11 - Sponza Scene - Comparison of loading times

This topic is 2128 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys! wink.png

 

Well I decided to look into the topic of global illumination, and as seen, many of those demos use the Sponza Scene (From Crytek), because of its complexity. And, well, I tried it as well, but my loading time seems quite high just for the Sponza Scene. (Loading the file, creating buffers, and creating a simple texture material).

 

Loading time for my project: 21.9 Seconds (21 for Loading the actual file, ~1 for Creating the buffers) wacko.png

 

For those people who have tried loading this scene before, what are your loading times, are mine terrible?

 

Thanks, as usual.

-MIGI0027

Share this post


Link to post
Share on other sites
Advertisement

What format are you trying to load it in?  Sounds like you might be parsing text, which is never going to be fast; instead you should preprocess the model into a binary format that can be just loaded directly into buffers with a single fread.

Share this post


Link to post
Share on other sites
My framework loads the crytek sponza in about 2-3 seconds, though preprocessing ( geometry to binary data, textures to dds, compiling hlsl... ) takes about 15-20 seconds.

Share this post


Link to post
Share on other sites

Wow, too much. Give me link to the sponza scene and I'll test it. I can load now a few MiB of meshes and about 300 MiB of textures in DDS format in 3-4 seconds.

Share this post


Link to post
Share on other sites

PS. When I mean the load time, I mean:

  • Loading the file (Assimp)
  • Parsing it (Assimp)
  • Triangulating (Assimp)
  • Copying Vertices / Normals / Tangent...
  • Calculating bounding box
  • Create shader/material
  • Create ALL textures.
  • Create buffers (v/i)

Share this post


Link to post
Share on other sites

Are you testing this in a debug or a release build?  File operations can be significantly slower in debug builds than release builds, so that might account for some of the time.  If that isn't the issue, you might want to profile each of the operations you listed above to see which one is taking the most time.  It doesn't need to be anything fancy, just dump the system time in milliseconds to the output debug area when each process finishes.  That should help you figure out what is going on.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!