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 9120699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:40:57+00:00 2026-06-17T05:40:57+00:00

I am building a cocos2d continuous running ios game, where a character is animated

  • 0

I am building a cocos2d continuous running ios game, where a character is animated to run through a scene. The background, the grounds under the character’s feet and a fence behind the running character move in the opposite direction to simulate forward motion. The character itself is animated to run in place. Occasionally additional sprites move by in the scene.

All my movement (except the in place animation of the character) happens in the update method.

I notice that all the moving parts stutter when additional sprites are moving past the scene. When there are no additional sprites, the stutter goes away.

I also notice that the stutter is almost imperceptible in the ipad 3 (ios 6.0.1), whereas it is most noticeable in the iphone 3gs (ios 6.0.1) and ipad 1 (ios 5.1.1), and moderately noticeable on the iphone 4 (ios 6.0.1).

I have no idea where to begin to address this – I tried removing the actual rendering of the additional sprites, and I also tried removing the fence behind the character – but neither change had any impact on the stutter.

Any suggestions?

Update: fixed it by running time profiler as @Fogmeister suggested below. Turns out I was doing disk i/o on every update to look up some state variables. I optimized that away and the stutter is gone on all devices. Thanks!

  • 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-17T05:40:58+00:00Added an answer on June 17, 2026 at 5:40 am

    You need to identify what is taking up the time in the code and causing the stutter.

    It seems like it is just an optimisation issue as you can see more stutter on older, slower devices and less on new more powerful devices.

    Analyse the app using the Time Profiler instrument. This will tell you where the time is being spent and point you almost instantly to the function (if not the line) that is taking the time.

    Once you’ve found that you can start optimising.

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

Sidebar

Related Questions

I am building a game in Cocos2d-iPhone, and while I was updating to iOS
I'm building a cocos2d game which is supposed to be in portrait mode. I
I am building an app which uses cocos2D. I developed my app using iOS
I'm trying to create dynamic graphics for my game, which I'm building with Cocos2D.
I am building a game using cocos2d-iphone 0.99.4 and Xcode 3.2.4. When I try
I'm currently building a game with cocos2d and I have the following Problem: I
I'm currently building a game for the iPhone with cocos2d and have the following
I'm building a cocos2d game which is supposed to be in portrait mode. I
I'm trying to experiment with cocos2d by building a simple card game. I'm not
I'm building a simple 2D game in Cocos2d which involves having enemies cross the

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.