• 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 Ludovic · Nov 30, 2010 at 06:08 PM · optimizationmemory

High memory consumption with empty scene

Hi everyone, I'm currently running into high memory usage problem. I have an empty scene in which I load assets from asset bundles. When everything is loaded, the application uses 1.5~ Go. Then I manually unload the assets and suppress every object from the scene (except inactive game objects (about 10 which don't use much memory)).

I finally came up with a list of Object I can't suppress since they are used by Unity. Here is it :

Scene, BehaviourManager, FixedBehaviourManager, LateBehaviourManager, UpdateManager, PipelineManager, RenderSettings, HaloManager, LightmapSettings.

I don't know if these objects use a lot of memory, but my application still uses about 650-700 Mo with these 9 objects only.

So what could use so much memory ? And is there any way to profile my app to see what use this memory ?

Thanks for your help

PS I posted an another question related to this one.

Comment
Add comment · Show 1
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 ChazGamingInc · Dec 13, 2015 at 04:01 PM 0
Share

I am facing a similar problem. When I load Unity 5.3 it locks up and can't click anything. It's also freezing and using up around 7.5 GB of Ram.

Please help me fix this issue.

Thanks, Chaz Gaming Inc.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by _Petroz · Dec 01, 2010 at 04:49 AM

For profiling check out the Profiler http://unity3d.com/support/documentation/Manual/Profiler.html

Here is a question about memory management: http://answers.unity3d.com/questions/12033/are-there-any-known-memory-leaks-in-unity3d-or-mono

Comment
Add comment · Show 4 · 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 Ludovic · Dec 01, 2010 at 10:04 AM 0
Share

Thanks for the advice, but I already checked the profiler (forgot to mention it in my post though). The profiler shows that there are 550 Mo for the textures, the meshes and the animations. Since in build, my app uses 1.5 Go, there is a big bunch of 950 Mo~ of RAM used for something else (?!).

I continue to do some tests to figure out why this happens...

avatar image _Petroz · Dec 01, 2010 at 10:55 AM 0
Share

Have you tried forcing garbage collection?

avatar image Ludovic · Dec 03, 2010 at 05:29 PM 0
Share

Yes and I also called Resources.Unload but it didn't reduce the memory much. But I think I found which part of my application loads a lot of memory. Is there a way to monitor the system memory used by the current process ? It seems that the Mono Process class does not implement the .NET accessors like PrivateMemorySize64. So it's kind of hard to profile the memory use...

avatar image theschwartz · Mar 29, 2012 at 01:59 PM 0
Share

Our company also suffers from memory problems in the game we are making. When we are in the main menu the game uses about 500MB and the Unity profiler says only 100MB is used for textures, meshes etc. and in-game it uses about 1.6GB where the profiler says there is only used about 300MB on textures etc. Has any found out exactly what the problem is? We are still searching for where the problem is.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Should you use = null to free memory for variables declared in Start()? 3 Answers

ResourceManager Class Referencing Assets? 1 Answer

Do I need to manually call Resources.UnloadUnusedAssets? 0 Answers

Reasonable heap alloc. per second and total ? 0 Answers

Is it normal for Unity5 Android app sizes to be so large?? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges