Removing Unused Textures in Cocos2D

By | March 5, 2011

Sometimes unused textures may cause you memory leak! So you need to remove the unused textures.
For removing unused textures, use the following line of code, where ever you want to remove unused textures.

[[TextureMgr sharedTextureMgr] removeUnusedTextures];

🙂

44 thoughts on “Removing Unused Textures in Cocos2D

  1. increase youtube views

    Great blog post! Big thanks a lot for the useful info!Also, I am having problems with subscribing to the RSS feed, any chance you could assist me with the subscribing process? Anyway, awaiting another fantastic post!

    Reply
  2. Davis Beedle

    I do not know if it’s just me or if perhaps everyone else encountering issues with your blog. It looks like some of the written text on your posts are running off the screen. Can somebody else please comment and let me know if this is happening to them as well? This might be a problem with my browser because I’ve had this happen before. Thank you

    Reply
  3. Omar Zakutney

    I am continually searching online for articles that can help me. Thx!

    Reply
  4. the green smoke

    Excellent blog here! Also your website loads in no time! Who are you hosting with? Can I get your affiliate link to your host? I wish my website loaded up as quickly as yours.

    Reply
  5. Streaming film

    Please, can you PM me and tell me few more thinks about this, I am really fan of your blog.

    Reply
  6. Curtis Canida

    I am delighted that I’ve observed this site. Finally anything not a crap, which we go through incredibly frequently. The web site is lovingly serviced and stored as much as date. So it need to be, thanks for sharing this with us.

    Reply
  7. Alden Altobelli

    Definitely, what a magnificent blog and informative posts, I surely will bookmark your website.Best Regards!

    Reply
  8. Tarra Traicoff

    some genuinely nice and useful information on this website , also I believe the design and style has got fantastic features.

    Reply
  9. uhaul

    Your blog post on this topic is comfort and ease and inspiration in my experience. A friend once informed me about some of the points you share although I thought it was not appropriate because I had some other opinion which had remained with me for years. With the article, I now know John ended up being right. I think I ought to send him some text messages immediately. Probably add your website link also. He too must know more of the things people haveeveryone has learned from your post. Thanks

    Reply
  10. android tablet

    Appreciating the time and energy you put into your site and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same outdated rehashed information. Fantastic read! I’ve saved your site and I’m including your RSS feeds to my Google account.

    Reply
  11. Autokarowe Bilety

    Greetings! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be great if you could point me in the direction of a good platform.

    Reply
  12. Rodolfo Semprini

    Rattling great information can be found on web site.

    Reply
  13. ip pbx phone systems

    I was recommended this website by my cousin. I am now not certain whether this publish is written by way of him as nobody else know such targeted approximately my difficulty. You are wonderful! Thanks!

    Reply
  14. Golf Courses

    Everyone loves what you guys are up too. This type of clever work and coverage! Keep up the wonderful works guys I’ve you guys to blogroll.

    Reply
  15. Moodle Totara LMS

    I just added this blog to my rss reader, excellent stuff. A hard-hitting post.

    Reply
  16. Napoleon Disalvo

    I’d incessantly want to be update on new articles on this internet site , saved to fav! .

    Reply
  17. Gus Harber

    I like this web site because so much useful stuff on here : D.

    Reply
  18. Free Avatar

    Adding to my bookmarks cheers, sending this to my mates now.

    Reply
  19. {konta bankowe

    “You really know your stuff… Keep up the good work!”

    Reply
  20. Buddy Schabel

    some truly fantastic work on behalf of the owner of this website , absolutely great content material .

    Reply
  21. NapoleonS

    I love this article a lot. I will definitely be back again. Hope that I can read more insightful posts then. Will probably be sharing your knowledge with all of my friends!

    Reply
  22. kim kardashian 2010

    Hi buddy, your blog’s design is simple and clean and i like it.

    Reply
  23. get more Home Office Furniture

    There are not many web sites with data like this man! Bookmarked!

    Reply
  24. Andre Falzarano

    Perfect work you have done, this web site is really cool with fantastic information.

    Reply
  25. konto osobiste

    I am impressed by the quality of information on this website. There are a lot of good resources here. I am sure I will visit this place again soon.

    Reply
  26. Alberta Cabell

    Excellent publish, thanks so much for sharing. Do you happen to have an RSS feed I can subscribe to?

    Reply
  27. Nichelle Katcher

    I respect your work , regards for all the useful blog posts.

    Reply
  28. KIM

    Hi, I’ve been a lurker around your blog for a few months. I love this article and your entire site! Looking forward to reading more!

    Reply
  29. Lee Viniard

    I enjoy this website, will definitely come back again. Make sure you proceed creating high quality content.

    Reply

Leave a Reply to Malik Cancel reply

Your email address will not be published. Required fields are marked *