Number of Objects in Autorelease Pool
Is there any way to query the number of objects that reside in a given NSAutoreleasePool?
This is really important for me, because in my game there are several loops and I need to know how effe开发者_运维技巧ctively I'm autoreleasing my autoreleased objects.
Nope.
Presumably you've got some kind of master control loop that runs your game. Just create an autorelease pool at the beginning of each iteration and destroy it and the end of the iteration.
精彩评论