Unity3d的内存不足引起崩溃的几种原因
来源:互联网 发布:淘宝贷款影响征信吗 编辑:程序博客网 时间:2024/06/09 19:07
At some points a game may crash with "out of memory" though it in theory it should fit in fine. When this happens compare your normal game memory footprint and the allocated memory size when the crash happens. If the numbers are not similar, then there is a memory spike. This might be due to:
在某些时刻,一个游戏可能由于“内存不足”而崩溃。尽管理论上它最后应当是合适的。当这个问题发生而引发崩溃时,对比你的正规的游戏内存轨迹和已分配内存大小。如果得到的数字不是类似的,那么这就发生了一个内存峰值。这可能是由于:
- Two big scenes being loaded at the same time - use an empty scene between two bigger ones to fix this.
两个大场景被同时加载——为了解决它,在两个更大的场景中间使用一个空的场景。 - Additive scene loading - remove unused parts to maintain the memory size.
附加的场景加载——移除没有用到的部分来维护内存大小。 - Huge asset bundles loaded to the memory
巨大的资源包被加载到内存 - Loading via WWW or instantiating (a huge amount of) big objects like:
通过WWW加载或是实例化(大量的实例化)庞大的对象,例如:- Textures without proper compression (a no go for mobiles).
没有合适压缩的贴图(对于移动设备是无效的)。 - Textures having Get/Set pixels enabled. This requires an uncompressed copy of the texture in memory.
被启用了 获取/设置像素 的贴图。这需要在内存中创建一个贴图的未压缩的复制品。 - Textures loaded from JPEG/PNGs at runtime are essentially uncompressed.
动态地从JPEG/PNGs加载的贴图没有基本上被压缩。 - Big mp3 files marked as decompress on loading.
在加载时,巨大的mp3文件被标记为解压缩。
- Textures without proper compression (a no go for mobiles).
- Keeping unused assets in weird caches like static monobehavior fields, which are not cleared when changing scenes.
在怪异的缓存中(像静态monobehavior区域,当变换场景时它不会被清理)保留了未使用的资源。
0 0
- Unity3d的内存不足引起崩溃的几种原因
- 造成IOS程序崩溃的几种可能的原因
- 服务器站点崩溃的几种原因及解决方案
- 一例MSVC2013中recursive_mutex引起崩溃的原因分析
- 内存不足引起的SIGKILL:一个缓冲区不断增长问题的定位与解决(解释SIGKILL原因)
- 内存不足引起的SIGKILL:一个缓冲区不断增长问题的定位与解决(解释SIGKILL原因)
- 内存不足引起的编译(make)错误
- 容易引起Java内存泄漏的几大原因
- 引起进程调度的原因有以下几类
- 引起pagefault的原因
- QSqlQuery::next() 引起的崩溃
- 一起 select 引起的崩溃
- 指针引起的崩溃分析
- 网页崩溃的原因
- “内存不足”的九大原因及解决方法
- 系统提示“内存不足”的原因及解决方法
- 系统提示“内存不足”的原因及解决方法
- eclipse经常报内存不足的原因
- 根据父母的身高,体育锻炼,饮食习惯等,来预测孩子的身高
- poj2229Sumsets(动态规划)
- 软件产品质量 “新”标准
- Android提高第五篇之Service
- 100_apkTool
- Unity3d的内存不足引起崩溃的几种原因
- 基本内存结构
- CSDN Android客户端开发(二):详解如何基于Java用Jsoup爬虫HTML数据
- 防止 Chrome 屏蔽 非官方 扩展程序 教程(二)
- IO流和文件使用注意点
- secret123
- ScrollView下拉视图放大
- amazon aws Route53
- Linux Shell之sed