Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by BlindSeher · Jul 30, 2014 at 05:42 AM · memory

WP8 Profiler Memory Discrepancy

Hey,

I've attached an image showing memory usage as reported via profiling WP8 devices for the app I'm creating. The upper part of the image represents SC01 on a 512MB device (memory limit of 180MB), the bottom part represents SC02 on a 2GB device (memory limit of 570MB).

The problem I'm running into is that the app crashes on 512MB devices via a Application.LoadLevel call from SC01 to SC02, which is because the "Total System Memory Usage" is above 180MB. But there seems to be a chunk of invisible memory being used (at least according to what Unity can see) as the "Used Total" is sitting at a vastly different amount than what the "Total System Memory Usage" and "Commited Total" are reporting.

That invisible difference in SC01 is ~50MB but in SC02, its over 120MB! I am unsure as to what this invisible memory is represented by (.NET related? / XAML related?) but its clearly a significant amount that Unity doesn't have profiling info on.

I've tried inserting a blank scene in between the two scenes in case it was some how a spike from both of them being in memory at the same time, but that lead to me seeing that a blank scene showed a "Used Total" of ~20MB but a "Total System Memory Usage" of ~50MB (literally created a blank project and profiled it on a WP8 device).

While the app is already decently optimized in regards to assets (DTX1 compression where it can be used otherwise DTX5, reduced texture sizes, compressed audio, etc) I have to manually reduce the assets down by ~30MB in SC02 (reducing some textures down to ~8KB from ~2MB, etc) before it stops crashing on transition from SC01. Much less than what would seem to be needed via the SC02 "Total System Memory Usage" which would lead me to believe I would need over 60MB reduced.

Does anybody have any insight into why there is this huge discrepancy between "Used Total" and "Total System Memory Usage" and what it actually represents? Maybe I am just missing something obvious but I would expect a "Used Total" of ~125MB to run fine with a memory cap of 180MB.

I found a post in which the same discrepancy can be scene in the profiler: [http://forum.unity3d.com/threads/tips-and-tricks-make-sure-to-profile-your-phone-apps-memory-usage.202952/] but unfortunately that post doesn't talk about anything relating to it.

scene_memory.png (50.7 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 BlindSeher · Aug 05, 2014 at 02:50 PM 0
Share

Anyone experience this before?

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Convert Texture2D to Image emgu CV - fast way 2 Answers

Modo memory use increases steadily 0 Answers

Device specific texture resolutions? 1 Answer

Assetbundle loaded asset cannot be cleaned in Android 1 Answer

Why a texture always consume twice RAM when running? 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