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 /
  • 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.

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 usage increase when voxels deleted?! 0 Answers

WebGl project memory usage 1 Answer

Clear Color32[] array from memory? 0 Answers

Why does my RAM usage keep increasing? 1 Answer


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