• 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 /
  • Help Room /
avatar image
0
Question by PogyManTV · Jul 03, 2016 at 09:32 PM · memorymemory managementmemory usagememory leakmemory leaks

Run out of memory in build

So today i was testing new update to my game basically i hosted a server another client joined in and we were enjoying a gameplay. After a couple minutes ago i looked at the task manager and my game where i was hosting a server took about 2GB of ram and it was jumping up 5MB every second so i closed it and return to game after next 15minutes the game crashed. I looked at the crash log and found that the game has run out of memory. So my question is can i somehow optimize my game without unity pro? I looked allover the internet found some information about unloadAssetbundle but i don't know how can i do it / write it in a script im so upset :/ . Thanks for any help!

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 WARC · Jul 03, 2016 at 10:59 PM

Hmm... That's strange... Check this it may help: https://docs.unity3d.com/ScriptReference/AssetBundle.Unload.html https://docs.unity3d.com/Manual/LoadingAssetBundles.html http://stackoverflow.com/questions/15065672/load-unload-assets-dynamically This one may help you even more: http://gamedev.stackexchange.com/questions/102774/how-can-an-asset-bundles-resources-be-destroyed-after-destroying-the-compressed

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 PogyManTV · Jul 04, 2016 at 08:40 AM 0
Share

Thanks for reply! But however all of the pages i already visit :D I spent abou 2 hours of looking for some good solution :/ The problem is i don't know how am i supposed to write the script what will be unloading assets i have no clue. On other forums people just post a few lines of thair code. I already change the max size of all textures from 1024px to 256px and the memory usage is still going up abou 4 $$anonymous$$B per second. I tried to make a few LOD objects but thata doesn't seems to work :/ But theres a one thing i found on a forums that AssetBundle is a Unit pro feature is that true? Here's link to my game if you want to chceck what's going on : http://gamejolt.com/games/thuglifealpha/61660

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

61 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

Related Questions

What is the correct way to store circular references in Unity? 1 Answer

Memory error pls help 0 Answers

GfxDriver memory issue on PC [SOLVED] 1 Answer

Need help with memory management 0 Answers

WebGl project memory usage 1 Answer

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