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!
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
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