x


AssetBundle loading on iPhone Advanced - when and how much?

question about loading asset bundles stored locally on iphone advanced does the entire bundle get loaded into memory when I execute new WWW(url), or when I explicitly call Load(assetName) on an AssetBundle?

I can see if url is a http://, then it probably needs to bring it over, but if it is a file://, it seems like it could delay the load of individual assets until the Load was called for each asset. That way you could have a very large asset bundle, but only load pieces as you need them.

more ▼

asked Dec 15 '09 at 03:17 AM

Matthew Chartier gravatar image

Matthew Chartier
11 1 1 3

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Full AssetBundle will be loaded into memory.

more ▼

answered Jan 26 '10 at 04:02 PM

Mantas Puida gravatar image

Mantas Puida
871 1 4 10

(comments are locked)
10|3000 characters needed characters left

I've loaded about 9 bundles and assigned them to variables, and it doesn't seem to harm the game at runtime . . . . I did however have issues when loading a single verry large bundle, it caused the app to fail on the Android Platform. Once said bundle was sub-devided the app ran without issuem.

I think the key is to use WWW.LoadFromCacheOrDownload. It also greatly improves load times.

more ▼

answered May 11 '12 at 03:16 PM

Fehr gravatar image

Fehr
76 2

(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:

x2013

asked: Dec 15 '09 at 03:17 AM

Seen: 1360 times

Last Updated: May 11 '12 at 03:16 PM