Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Nirvan · Jan 05, 2017 at 09:42 PM · buildprofilermemory management

Questions for ram memory management in unity

Hi, I fighting with ram memory usage in my project. I have a lot of objects on my scenes (many big scenes in build) with many meshes with high resolution textures.

I working on few systems and trying to reduce memory but without big success. Biggest thing I did is system which takes all objects from scene with component which defines how object is visible in scene (small, medium, big, very big) then creating empty object which holding reference to prefab etc. so scene is only terrain and empty objects with components with references to prefabs. When I load scene all components are grouped and prefabs are created only when they are needed (because I saw, destroying object will only unload assets with UnloadUnusedAssets(), but maybe prefab reference in component will not allow to? :( ) I using it with UnloadUnused assets, it shows very big dirrence in memory profiler in unity editor (meshes memory goes down from 1.1gb to 300mb) and on build with menu and one scene from this big ones, memory usage is very small (800mb) when with all scenes it's above 3gb.

Can't figure out how unity memory management really works. Now I found option in memory tab in profiler, it's "Detailed" button (first there is text "Simple") and there I can see more info about memory, thanks for it I optimalized some audio things, but there is mysterious thing in "Other" category, called "Objects" and it takes 1.81gb and no info, no references are given.

Sometimes on build everything taking 1.7gb and sometimes above 3gb depends of build's mood :O

What can I do to reduce memory in my project? :(

Thanks for "Detailed" I found few textures which aren't compressed and took about 1gb memory, but I see many textures aren't unloaded even they arent used in any material and object in scene. But this memory which is viewed in this tab corespondence in build ra memory? Maybe it's file size in project directory resources files. I making builds for windows.

Comment
Add comment · Show 2
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 tanoshimi · Jan 05, 2017 at 11:05 PM 0
Share

Have you read https://software.intel.com/en-us/blogs/2015/02/05/fix-memory-audio-texture-issues-in-unity ?

avatar image Nirvan tanoshimi · Jan 06, 2017 at 05:31 PM 0
Share

Thanks, this probably will help some, is there maybe more and more in depth about optimizing ram memory usage in unity?

0 Replies

· Add your reply
  • Sort: 

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

64 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

using one prefab or sound source in several levels 1 Answer

Does Effective Usage of SpriteAtlases Double Storage Used? 0 Answers

Why is the Development Build extremely slow (even with a very simple scene)? 2 Answers

Cannot find profiler tool to show GC object types 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