unity profile 内存面板 分为俩大类 一个是used 一个是reserved. used是当前正在使用的,reserved是unity申请的,有缓存。 主要分析 reserved
1. reserved total = unity + gfxDriver + Mono + fmod + profile. 是总内存。但是不等于 android的PSS 或者 IOS xcode上显示的内存。他们俩还包括第三方内存以及共享内存。
2. gfxDriver 是底层渲染驱动回馈的内存,可以理解为显存所占用大小。主要跟 texture,mesh,shader相关。
3. mono 是堆内存,跟代码分配相关。只升不降。
4. fmod是 音频内存。
5. unity 是unity引擎所申请的内存。各种 manager(如果Resources文件夹下太多文件, ResourceManager就会很大。PressentPathManager等),font,animationclip等。如果 texture,mesh开了 read/write enable
他这块也会增长。 www stream, serializedFile等。
---------------------
原文:https://blog.youkuaiyun.com/nanhaibuluo/article/details/51407506