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 captainfrogduh · Aug 24, 2015 at 03:57 PM · unity 5iosiphonememory usage

Massive memory usage on iOS device with a simple game

Ive developed a simple game with unity which has an airplane (https://www.assetstore.unity3d.com/en/#!/content/28663) with bolts coming out of it to represent some firing. Ive added a simple nebula background to the main camera (skybox). Ive reduced the resolution of all my textures to 1024 for iOS. Ive tried to use mobile shaders mostly but the background has a skybox(6 sided) shader attached to it to enable tint colours. I added a cube around the screen which has a collider and destroys everything that is not in the game view. The game runs fine in Unity Play mode with around 302 fps with draw calls around 15 (Ive a 2011 macbook pro and 302 is a lot). The game runs fine on the iOS simulator in Xcode. But when i try to run it on my iPhone 5 (8.4.1) it just shows a black screen with nothing on it and eventually crashes (Terminated due to memory error). I then used the instruments in Xcode to see what was happening. The game starts with 250mb on memory. Yikes!! Then slowly goes up to 450mb then crashes. Im sure the kernel just terminates it because the app is using more memory then there is available. Can someone please help me what is wrong with Unity. Im using Unity 5.1.1 free edition and there is not even a single array or anything of that sort in my game. To begin with 250 mb is a lot and then going up to 450mb is truly not acceptable. Ive tried to Build with both Mono2x and Illcp2 but the problem occurs on both. What am i doing wrong? Any help would be greatly appreciated.

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
1

Answer by Crz · Sep 14, 2015 at 10:44 AM

Did you try with unity profiler http://docs.unity3d.com/Manual/Profiler.html

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

26 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

Related Questions

Memory intensive native plugin seeing ~6x slowdown 0 Answers

How do I catch a low memory warning from iphone in Unity? 1 Answer

iOS build not rendering properly 1 Answer

blender file support in Unity for ios 1 Answer

ios build for unity 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