Optimize XAP file upload using asp.net

I am developing a game using Silverlight 4 and silversprite ( http://silversprite.codeplex.com/ )

This game depends on HEAVILY content, using a lot of audio and images. My folder with content is about 90 mb. And because of this, my XAP file is about 60 MB and takes 5 minutes to download from the website before any user can start playing.

I am using Visual Web Developer 2010 to build my site and download XAP. Is there a way I can get content from my XAP and put it in an ASP.net site project? Or maybe upload my content files to the site repository? This will speed up the download of my XAP file.

Anyone have any suggestions? Thanks!

+6
silverlight loading
source share
2 answers

Yes, include in your XAP only the content needed for the home screen. Put the other content that you need into other XAPs (if you need to understand the xml manifest), or they will just make simple mail files. Perhaps Zip for each level or any other.

You can download Zip using WebClient and then use StreamResourceInfo and Application.GetResourceStream to access the contents in a zip file.

This blog , although aging still carries the main idea a bit and still fundamentally uses existing technology.

+4
source share

Absolutley is called Caching Application Library . Ive very successfully used its current standard operating procedure, its use with resource assemblies is especially nice.

straight from msdn ...

Resource files are usually any non-executable data file used by your application, such as images, audio and video files. A resource file can also have certain meanings in certain contexts. For example, in the context of application localization, resource files refer to .resx files that can be deployed to localized satellite assemblies .

he continues with some really useful information

With Silverlight, you can deploy resource files in the following ways:

• As separate files in an application package.

• As separate files that you extract on request.

• Like files embedded in an assembly in an application package.

• Like files embedded in an assembly in an external library package.

• Like files embedded in an assembly that you receive on demand.

which is suggested in another answer

+3
source share

All Articles