Jump to content
  • Advertisement
Sign in to follow this  
kag1

[.net] Application Loading

This topic is 5070 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, I notice when I build a fairly large program, it takes very long to load up..like about 10-20 seconds. Why is this? How can I make it quicker? Or should I make a splash screen?..but wouldn't a splash screen then also have to load making it even longer?

Share this post


Link to post
Share on other sites
Advertisement
It may be that because you're actively working on it, the Framework has to JIT it every time you run, hence the delay.

I don't have any particular ideas for what to do about it, though...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you're compiling in debug mode than the VS IDE will hook into the application, slowing things down for awhile.

Share this post


Link to post
Share on other sites
Run it twice in a row without recompiling. My apps always take longer to run the first time. Also, see what happens when you run it from its folder instead of your IDE.

Share this post


Link to post
Share on other sites
Sounds like it may also be a resource issue? Is this a graphical/game type application? Are you loading in a lot of textures and geometry? Try optimizing your resources to reduce the load-times. Ensure that textures are as small as possible, while still retaining enough information to render a high-quality scene. For example, if you're rendering a small object, and you rarely allow the user's camera to zoom in close, then there is little point in using a 2048x2048 or 1024x1024 texture on the object. If you are loading in resources, then a splash screen might be ideal. Remember, this is an issue encountered by all games, not strictly managed ones.

Share this post


Link to post
Share on other sites
You might want to give ngen.exe a try. Compare the start up times of the non-ngen'ed and the ngen'ed version. If the ngen'ed version is significantly faster, run ngen on installation on the host computer - if not, optimize your resource-loading routines. (Don't use ngen if you don't have to).

Regards,
Andre

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!