x


Optimising iOS Level Load Times

I need some advice on how to improve my iPad game’s level load times. The main level for my game is currently taking roughly 10 seconds to load.

  1. I procedurally create most poly objects, and an average frame will have from 250 to 1000 vertices
  2. I’ve shrunk every texture to fit within 64x64 (they now consume less than 3mb). After shrinking all the textures the load times actually increased by one second
  3. My sound load types are “Compressed in Memory”
  4. I’ve compressed all my sounds to 32 kbps (they now consume roughly 500kb)
  5. I’ve tried using Application.LoadLevelAsync to hide the load times, but the game freezes while loading… for ten seconds

Below is the Editor Log from building my current test scene. Any thoughts or suggestions?

Mono dependencies included in the build
Boo.Lang.dll
Mono.Security.dll
System.Core.dll
System.dll
UnityScript.Lang.dll
mscorlib.dll
Assembly-CSharp-firstpass.dll
Assembly-CSharp.dll
Assembly-UnityScript.dll    

Unloading 3537 unused Assets to reduce memory usage. Loaded Objects now: 1943.
System memory in use: 295.5 MB.
Unloading 37 Unused Serialized files
  (Serialized files now loaded: 2 / Dirty serialized files: 2)

Textures      2.8 mb     32.3% 
Meshes        8.6 kb     0.1% 
Animations    418.1 kb   4.8% 
Sounds        550.6 kb   6.3% 
Shaders       1.9 kb     0.0% 
Other Assets  160.5 kb   1.8% 
Levels        158.8 kb   1.8% 
Scripts       420.4 kb   4.8% 
Included DLLs 4.1 mb     47.3% 
File headers  68.5 kb    0.8% 
Complete size 8.6 mb     100.0% 
more ▼

asked Aug 26 '11 at 02:17 AM

Toxic Blob gravatar image

Toxic Blob
656 18 20 33

How many GameObjects are you loading, and much work are you doing in Awake() functions?

Aug 26 '11 at 10:40 AM superpig
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Check also if you have a lot of textures that you are loading. I suspect that it is related to the objects you are procedurally creating at runtime.

more ▼

answered Jun 20 '12 at 05:23 PM

arthamas gravatar image

arthamas
1 2 2

Agreed. Instantiating game objects can take a lot of time

Nov 19 '12 at 01:21 AM soulburner
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1953
x716
x470
x435
x25

asked: Aug 26 '11 at 02:17 AM

Seen: 2373 times

Last Updated: Nov 19 '12 at 01:21 AM