Sign in to follow this  
kag1

[.net] Application Loading

Recommended Posts

kag1    146
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
Promit    13246
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   
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
nagromo    676
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
JesseT    402
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
VizOne    598
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this