Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8582161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:13:31+00:00 2026-06-11T21:13:31+00:00

I have recently upgraded to Cocos2d 2.0 Before that my game was working properly

  • 0

I have recently upgraded to Cocos2d 2.0 Before that my game was working properly and frame rate was stably on 60fps. After upgrading to 2.0 and changing some code to the new version I have recognized that playing the game for about 3-4 minutes the frame rate drops down to 50, than to about 40.

I have found some mistakes in my code, like deallocating wrongly some sprites, but this the FPS drop was still there.

I am creating sprites and removing sprites continuously in the scene. After each round in the game I am removing the screen elements and creating them again for the new round. Almost all elements are animated and I am stopping all actions before removing them from the scene.

I have found out that if I removing the scene and starting it again, the FPS rate comes back to normal.

What I am doing wrong? I have tried several possible solutions, but I cannot find the route cause.

Could anybody help here?

Oh, I forgot to mention that the code was working fine on Cocos2d 1.x version. I have never recognized any FPS drop with the same code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:13:32+00:00Added an answer on June 11, 2026 at 9:13 pm

    Debug or Release? Device or Simulator? —> Measure performance only in release builds on device.

    From the description it sounds a lot like a memory leak where you either get higher and higher memory usage or more and more nodes not deallocating, which means they might continue to run. Perhaps even draw offscreen.

    There’s many reasons why one version works fine but not another, and who is to tell that this bug is just a new bug introduced during the transition process. I would start with a simple test: do all nodes of the scene run their dealloc method as you remove them? If not, you have a memory leak, perhaps a retain cycle. A simple change in cocos2d’s API from an assign property to a retain property is all it takes to cause something like this.

    Then check Instruments to find out exactly where you’re leaking memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a draggable container that was working with jquery 1.3.2. I recently upgraded
I have recently upgraded my MVC 3 project to MVC 4. After all the
We've recently upgraded one of our SSRS2005 servers to SSRS2008 and have found that
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
I have a solution that uses EF Code First. I recently upgraded all my
I have recently upgraded my gemfile to try and get Rails 3.1 working with
Recently upgraded to XCode 4.5 I have a screen that's had 2 UIStepper controls
I have a site I recently upgraded. The old site had a calendar that
I have recently upgraded to VS2010, and overall I must say that I'm very
I have recently upgraded to Xcode 4 and I've found that an app which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.