Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by heftyfunseeker · Jun 19, 2014 at 10:39 PM · assetbundleassetmemorybuildpipelinedependencies

Why does building bundles cause unload unused assets to be called?

Currently building around 2000 bundles about which 500 are on the dependency stack (on the same level). The editor log is displaying an unload of unused assets on each bundle that's built. As I build more and more bundles, the number of assets gets larger and larger. It appears as though unity is unloading everything and reloading to build bundles.

Here is an example output:

Player size statistics Level 0 'data/dependencybundle_d062d96d/bundle_dependencybundle_d062d96d.assetbundle' uses 58.3 KB uncompressed / 58.3 KB uncompressed. Total uncompressed size 58.3 KB. Total uncompressed size 58.3 KB. System memory in use before: 1.28 GB. Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0) System memory in use after: 1.28 GB.

Unloading 63 unused Assets to reduce memory usage. Loaded Objects now: 7945. Total: 14.677408 ms (FindLiveObjects: 0.398453 ms CreateObjectMapping: 0.399657 ms MarkObjects: 12.635750 ms DeleteObjects: 0.119566 ms)

This becomes "unloading ~27,000 assets" overtime as the build continues and takes about 1.5 seconds for the unload. This makes pack building on our build servers near impossible. Does anyone know if Unity unloads all assets and reloads them when building asset bundles?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jeff-Kesselman · Jun 19, 2014 at 10:39 PM

Im pretty sure its freeing up memory so that it has enough to build the bundle.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image heftyfunseeker · Jun 19, 2014 at 10:53 PM 0
Share

Sure, but it then immediately reloads the assets. For example, this is sudo what I see when building bundles that have only a few assets in them.

unloading n unloading n + 1 unloading n + 2 unloading n + 3 unloading n...

It seems that it's unloading everything on the dependency stack and then immediately reloading it, and it's accumulative. I basically have a lot of assets sitting on the dependency stack over time and it keeps unloading and reloading them.

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

AssetBundle INCREASES Memory Allocation 1 Answer

Memory Locking While Loading Issue 0 Answers

Understanding AssetBundles (WWW) BuildPipeline 1 Answer

Keeping assetbundles in memory vs always loading from cache 1 Answer

How StreamedSceneAssetBundle differ from AssetBundle in terms of scripting? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges