Projects > cpp > Issues > Bug #2418

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Unused spriteframes also need to be removed when purgeCachedData

Bug #2418 [Closed]
dumganhar 2013-07-22 10:10 . Updated almost 10 years ago

Fixed at https://github.com/cocos2d/cocos2d-x/pull/3189

When a game running on iOS get a memory warning, cocos2d::Director::getInstance()->purgeCachedData() will be called.
However, most case, we use SpriteFrame which will retain textures.
So we also need to removeUnusedSpriteFrames when purgeCachedData.

dumganhar 2013-07-22 10:32
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:59aceeb0e3ff67e61bd1c887fdb20a4d2609b8fd.

Atom PDF

Status:Closed
Start date:2013-07-22
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:all
Target version:3.0-alpha0-pre