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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:24:41+00:00 2026-05-26T16:24:41+00:00

Right now in my code I have like 6-8 diffrent timers that have diffrent

  • 0

Right now in my code I have like 6-8 diffrent timers that have diffrent delays. Every Timer do spawn a diffrent thing to the stage. My question is just a simple one, would it be better if I could do ONE timer that could spawn everything? It that more optimized then? Would It make a different to the preformence of the game?

Simplefy: 8 different timers vs 1 huge timers containing every information that all the 8 timers hold together?

  • 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-26T16:24:41+00:00Added an answer on May 26, 2026 at 4:24 pm

    In general, game developers prefer to have a single timer run the entire thing. This is known as the main loop, the game loop, or the update loop.

    That being said, many flash games have performance to spare, and the readability of using multiple timers may make it easier to get a finished game out there. Optimizing you code prematurely is as bad as not optimizing it at all.

    If you game runs evenly on a variety of devices, without performance problems, then don’t worry about refactoring the timers. Plus in a flash game, timers are unlikely to be the cause of performance issues. Rendering and creating new objects are. So be sure to profile your game if there are performance issues to discover what function calls are actually causing the problem before optimizing an area that may not be the culprit.

    In short – there is not a one-way-to-code rule about using timers in games. But among the developers I know who make games, we use as few as possible as a matter of keeping the code simple, and being able to stop and start it with ease.

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

Sidebar

Related Questions

Right now, I have code that looks something like this: Private Sub ShowReport(ByVal reportName
I have some code right now that executes when a link is clicked. The
Right now i have a line of code, in vb, that calls a text
I have an odd edge case right now in that a response code from
As it is right now I have a bit of code that kind of
I have this code right now to get the row value from jquery grid..
Right now, I have this code where $obj_arr maybe contain array and an object.
I'm currently doing something like this in some code I'm working on right now:
So we have a bunch of different processes setup in code right now. We
Right now we have all our code gathered in main.lua. We don't want to

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.