Look at the attached image, “Malloc 64 bytes” keeps accumulating and the heap allocated memory keeps rising.
It’s easy to repro by using the HelloCpp in 2.1.4(2.1.5) cocos2d-x sdk:
in AppController.mm, change the glview initializing code to:
EAGLView **__glView =
** note we only change the pixel format and depth format, which should be allowed, right?
- in AppDelegate.cpp
>setDepthTest; // have to do this, otherwise the window shows nothing>setOpenGLView(pEGLView);
CCEGLView* pEGLView = CCEGLView::sharedOpenGLView;
then check the instrument profile and watching memory ramping up…
Is this by design or not a big issue? Let me know what is going on. Thanks.
Screen Shot 2013-10-31 at 7.39.12 PM.png (82.7 KB)