是正常的,我的cocos2d应用程序每秒增加实际内存使用? [英] Is it normal that my cocos2d app increase real memory usage every second?
问题描述
我开发cocos2d iOS应用程式iPad。
当我测试内存泄漏和对象分配我的Live Bytes是稳定的,
但是当我运行活动监视器,我看到我的应用程序的实际内存使用增加每秒0.02MB。 strong>
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应用程序每秒增加实际内存使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!