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 Reedmand · Feb 15, 2017 at 07:28 AM · iosmemory usage

Problem with RAM usage on iOS build

Hello. I encountered memory problems with project. Unity version - 5.5.1p3, build for the iOS, which includes terrain of ​​25 km2 with Heightmap 4K, Splat Map 2K, NavMesh size of 67.2 MB. We use texture compression PVRTC 2 bits for normal textures and PVRTC 4 bits for the UI, all the music and all voice conversations - Streaming. The project is building only with the ARM64, ARMv7 disabled. In addition, the Player Settings includes Prebake Collision Meshes, Optimize Mesh Data. Static batching is not used, only the GPU Instancing. Now the project takes on iPhone 5s up to 500 MB of RAM with an incomplete content, if we include everything what need to complete the game, then the memory will jump up to about 600 MB, and this is crash. It would be desirable to reduce the memory consumption of 50-100 MB on iPhone 5s.

At the same time I tried to bring the same project for Android on the Galaxy Note 5 using IL2CPP. There's the same project takes only 470 MB of RAM. Why is this happening?

  1. I raise questions about Objects and ShaderLab in Profiler/Other - what they contain? Is it possible to somehow reduce them?

  2. Why is the removal NavMesh drops memory not to 67.2 MB, but 150 MB? According to my observations, in addition to Assets memory, when removing NavMesh memory also reduced in Objects - really NavMesh duplicated in memory?

  3. Will some reduction in the number of materials reduce memory usage? Whether memory usage reduce after reduction Normal Map in the materials? We use a modified Standard Shader with added support for GPU Instancing.

  4. Will Shader Variant Collections optimize memory usage?

  5. Occlusion Culling is stored in the RAM is fully or partially loaded it? Now there is no Occlusion Culling Data in project

  6. Do the included Blend Probes, Reflection Probes and Motion Vectors on the Mesh Renderer and Skinned Mesh Renderer influence on the memory usage even if they are not used?

  7. Audio. In the project there are lossless-version files in the highest quality, and in Unity they are setup to import Vorbis / 5-25% quality. There is some memory optimization if we replace the lossless-source to a pre-edited MP3-files or it does not make sense?

  8. Is it possible to do something in XCode, or the entire project optimization is done exclusively in Unity?

Perhaps you can give any more good advice? We need to squeeze as much as possible of free memory. I am attaching Profiler screenshots from the iPhone 7. alt text

alt text

memoryprofiler1.jpg (478.0 kB)
memoryprofiler2.jpg (312.9 kB)
Comment
Add comment · Show 1
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 rbhushan · Feb 02, 2020 at 07:01 PM 0
Share

@Reedmand Did you find any ways to reduce memory footprint? I also need to reduce memory footprint of my unity game. Can you please help me here? I am new to unity who just wants to integrate a game in native ios app.

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

AR Foundation adding reference images at runtime causes memory leak on iOS, but works fine on Android. 0 Answers

"Real Memory" usage in iOS expands the more often one prefab is referenced in the assetbundle 0 Answers

So how much memory is my iOS game using? 1 Answer

iOS Audio best practice 0 Answers

iOS crash problem: Received memory warning . How to solve that? 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