Is it normal that my cocos2d app increase real memory usage every second?(我的 cocos2d 应用程序每秒增加实际内存使用量是否正常?)
问题描述
我为 iPad 开发 cocos2d iOS 应用程序.当我测试内存泄漏和对象分配时,我的 Live Bytes 是稳定的,但是当我运行 Activity Monitor 时,我看到我的应用程序的实际内存使用量每秒增加 0.02MB.
I develop cocos2d iOS app for iPad. When I test memory leaks and object allocation my Live Bytes are stable, but when I run Activity Monitor I see that the Real Memory Usage of my app increase every second with 0.02MB.
我想问一下这正常吗,有没有人遇到过类似的问题?
I want to ask is it normal and did someone have similar problems?
推荐答案
我记得我有这个问题是因为我记录了调试消息!
I remember that I have this problem because I log debug messages!
我以循环周期(每帧)记录此消息,这就是内存增加的原因!
I logging this messages in loop cycles (every frame) and this was the reason why the memory increasing!
请清除或评论所有日志消息,这将解决您的问题:)
Please clear or comment all log messages, this will slove your problem :)
这篇关于我的 cocos2d 应用程序每秒增加实际内存使用量是否正常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我的 cocos2d 应用程序每秒增加实际内存使用量是否正常?
基础教程推荐
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iOS4 创建后台定时器 2022-01-01
