PDA

View Full Version : Spurious allocation in Default OpenGL ES application



bharath2020
06-26-2009, 04:08 AM
Hello Experts,

I am developing an OpenGL ES application and have encountered a problem in my opengl application where there were spurious allocation was happening during the rendering process.

Attached is the stack trace of the application where the allocation was taking place. Interestingly, i removed all the rendering objects, but still the allocation was speeding up and some 20 minutes of launching application total memory usage reached the maximum limit eventually leading to crash..

--NTTimer
----draw
------glAplhaFuncX
--------__Z19Native_window_beginP23_EAGLNativeWindowObject
-----------CAImageQueueCollect
--------------__ZL13release_imageP13_CAImageQueuemP20CaImageQueu eReleased

Another, interesting thing the, the glAlphaFuncX method (where the allocation is happening) is not being used at all..


You can regenerate this by creating the default Apple's OpenGL application in Xcode (3.1.3 iPhone 3.0 GM seed) and you can notice this in instruments while running the build on the device.


Has any one encountere this problem?


Please dig me out of this problem..

Thanks in advance

duderman
06-30-2009, 06:21 PM
I am also having this problems while using cocos2d-iphone. Any ideas, anyone?

kshep
07-20-2009, 09:20 PM
I'm having this same problem too. Did anyone find a solution?

Thanks,

-Keith