开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜