![]() Load a very short track that you can loop until more music has been downloaded. Externalize the music and load it via the However even when compressed, audio takes up a lot of space, and if you have to fit things into 3 MB, if you have 5 minutes of music all the compression in the world won’t save you. There is no reason why all music must be available when the game starts. And yes, this means you might have to design your game with the web player experience in mind. Why not have a mini tutorial level where the user can learn the controls of the game? No reason for high-res textures here or loads of objects, or having all your enemies in the first level. #Unity web player build downloadThis way, the first level can be loaded quickly, and by keeping the player occupied playing it for a minute or two you can be sure that the download of all remaining assets can be completed in the background. Make the first level be short and not use a lot of assets. Showing an animated logo is a great way to make time go by unnoticed, thus letting the download progress further. This game could use a little more optimization! For more information, we recommend you read the reducing file size page. Level 4 'Level 3' uses 2.3 MB compressed. Level 3 'Level 2' uses 2.2 MB compressed. Level 2 'Level 1' uses 592.0 KB compressed. Level 1 'Character Builder' uses 111.5 KB compressed. Level 0 'Main Menu' uses 95.0 KB compressed. The console will show something like this: If you open the console log ( Open Editor Log button in the Console window( Desktop Platforms) Help -> Open Editor console log menu OSX) after or during a build, you can see the size of each individual scene file. ![]() Structuring some scenes around this loading concept is a comparative breeze! If you’ve made the game, you’ve done the hard part already. Think of each above step as an individual scene. It seems daunting to optimize it, but it turns out that with a little effort it is usually quite easy to structure your game in this fashion. Now, don’t panic if your web player currently is 10 MB. The key point to keep in mind is to think in wait times for a user on a slow connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |