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

  • Home
  • SEARCH
  • 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 237831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:27:26+00:00 2026-05-11T20:27:26+00:00

In an iPhone OS device, how many simultaneously running NSTimers would be too many?

  • 0

In an iPhone OS device, how many simultaneously running NSTimers would be too many? I have a bunch of routines being called by a single timer firing 25 times a sec, and things are pretty choppy, slow, and heavy. I am thinking about adding one or more extra NSTimers to distribute the work load a bit but I am concerned about how many would be okay to use. This may be dependent somewhat on the firing rate of each individual timer I realise, so lets suppose a firing rate of 20~30 times per second. So, how many NSTimers is too many?

  • 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-05-11T20:27:26+00:00Added an answer on May 11, 2026 at 8:27 pm

    Internally, NSTimers are all implemented on a single hardware timer. The OS keeps a central list of timers for all running apps and simply schedules a single hardware timer for the soonest event.

    Adding timers does not change the behavior of your app. That said, in the same way that adding thread to an essentially single process app makes runtime management easier, adding timers can help you partition your problem.

    Given the times you quote, I’m guessing that this timer is the frameupdate sync for a game or something similar. I would suggest a couple of things:

    1. Split your current drawing code into a separate thread and run your (same) timer code in that. This should give you more control.

    2. Profile your code to see how much processing is performed in each of those 1/25s slots – it may be (and probably is) that you simply need to optimize your code.

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

Sidebar

Related Questions

I have seen many threads about developing apps for ipod and iphone on linux
I am working on an iPhone game, which will have many types of creeps,
On the shake of the iPhone device i want some function to be called,
how to set iPhone device to stay active ( to not lock ) while
I have an iPhone app that hides the status bar. However, my main view
I have a simple iphone app that's based on the CrashLanding sample app. So
It is really mind boggling to find out many differences between the iphone and
I have developed an iPhone application with Snow Leopard (10.6.2) and Xcode (3.2.1). As
I have a couple questions about submitting blue-tooth enabled apps on the iPhone. I
I just installed Xcode 3.2.3. I have a first generation iPhone that I use

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.