- Home /
Giant spike with level load causes crash with iphone
My app works great until I try to load my first level in which it crashes on all devices other than the iphone 4 because it spikes to 300ms + per frame. How can I stop this? I have the profiler pic attached below.
http://www.flickr.com/photos/64364958@N03/5861388549/in/photostream
http://www.flickr.com/photos/64364958@N03/5861940452/in/photostream
Answer by Dreamora · Jun 24, 2011 at 01:36 AM
Don't use loadlevelasync in case you do (the profiler implies it) and especially not the Additive functions, it will keep both levels in ram in parallel which is a lot. Going by your stats you exceed 130mb or so for RAM + VRAM, which is going to die on anything but iphone4 and ipad2 which have 512mb RAM (anything else has at max 256 from which you at best have 100-125mb at hand for RAM + VRAM)
Your answer
Follow this Question
Related Questions
iPhone crashes on splash screen 1 Answer
iPad crashes on load level 2 Answers
Editor Crash: Where is Scene Data kept? 3 Answers
Roll-a-ball crashes on splashscreen 0 Answers
iPhone Unity Simulator Crashes 1 Answer