Cocos2d-Lua-Community
Cocos2d-Lua-Community copied to clipboard
MacOS 下面用Xcode调试,空项目挂着不动内存都会一直增加
MacOS 下面用Xcode调试,空项目挂着不动内存都会一直增加,每一两秒就增加0.1M,永远不会降低,看看什么原因
mark下调试结果,内存涨在presentDrawable。 [_mtlCommandBuffer presentDrawable:DeviceMTL::getCurrentDrawable()]; 用xcode新建mac和iOS的metal项目,mac存在通用的问题, iOS没有。 基本确认是mac的metal驱动代码有bug。 presentDrawable内部调用addPresendScheduleHandler有内存泄漏。