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 /
avatar image
0
Question by mjewkes · Jun 22, 2011 at 10:06 PM · ioscrashiphonememoryipad

[iOS Memory Question] At ~35MB of memory on a heavily multitasked iPhone4/iPad we are getting suspend-crashes after lowmemory warnings. Is there anything we can do?

Hey Folks,

We have an iOS application that runs at ~35MB memory over its lifetime. We are getting crashes after 10 minutes or so of gameplay on an iPhone 4 and iPad that have many other applications in the background. Usually we get a LowMemory warning log (but sometimes not). This LowMemory log shows other programs being jettisoned. No other crash logs are generated. Generally our app appears to be suspended when this occurs, but attempting to un-suspend it causes it to reset.

Is there anything to be done about this (aside from using less memory)? We don't get any (!) crashes on our 3G - just on the iPhone 4 with heavy multitasking. Are we doing something that might cause iOS to be unable to terminate background apps, or that might cause us to suspend when this occurs?

Thanks!

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 Dreamora · Jun 23, 2011 at 03:12 AM

The first thing to do is hook in a send message for the low memory warnings so you can free up stuff as needed.

The other thing to do is look how much memory you really use. Don't forget, that you are using more than just the system RAM, because textures you loaded that are in VRAM use up RAM too as they are held in RAM, so its well possible to use 35mb of regular RAM and 100mb of VRAM which would be a lot.

And no you can't do anything to tell / prevent ios from kicking out background tasks, it will do it on its own as it sees need and it won't suspend the current active one. if you really get kicked out you either have a lot of background task enabled apps running (skype, audioplayer, gps programs and alike) or you really have masses of stuff in vram and bind just to much ram at the given time.

Are you sure you are not loading resolution / device dependent textures and audio and thus just hit the 3rd / 4th gen devices significantly harder than the 3G? like "decompress on load" audio with much more or larger audio on the new devices?

Comment
Add comment · 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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

iPhone Game Crashing During Application.Load 0 Answers

How do I destroy things properly to free up memory? (iOS) 3 Answers

What do i need to run my built application for iphone using unity to be run on android devices 1 Answer

Pinch vs. Rotate gestures: can they be made size/resolution-independent? 2 Answers

iOS camera and terrain size 0 Answers


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