Speed up the Tick

The tick is taking longer and longer. I need to find ways to speed it up. Some starting points:

  1. Move archived data (past rounds) into a different db and/or server.
  2. Optimize the tick script itself.
  3. Optimize the game’s data structures that are most impacted by the tick.
  4. Pay for a better-performing server.
  5. Split the Tick on a single server so that galaxies don’t all have to update at the same time.
2 Likes

You know that my preference is #5 as I want a galaxy with a slower tick rate.

#1 sounds like a smart practical idea. Does this data actually slow down the system that much just by existing on the same database? I’m guessing that moving it the first time will be an unmitigated mess, but that creating a script to move galaxy data when rounds end in the future would be a cleaner, automatic process.

#4 is the simplest to do naturally. Throwing money at a problem is not always the best answer though.

1 Like

#1 likely has an effect, though I’m not sure how large.

#2 will probably be where I start, as that’s a requirement for #5 anyway.

#3 will be nice too, as the game as a whole would receive performance benefits as a result.

#4 is a last resort, and ideally won’t be necessary.

@TIF and I disbanded the majority of our billions and billions of military units. Is there any improvement in the tick speed at all?

This was brought up again recently here.

This is becoming a more urgent issue, gonna move it above Rebuild Support for Mal's MapGen for now.

2 Likes

For reference, the recent tick speeds are averaging just under 3 minutes, with longer ones taking just under 4 minutes.

This is pretty nasty, and I will be aiming to get this back under 1 minute maximum.

2 Likes

3 posts were split to a new topic: Galaxy-Specific Tick Schedules

I don’t know what it’s up to. tick seems normal ,but having trouble navigating the pages after the tick. some testimonials from my fam.

Jets [Creator of P vs C]Today at 11:10 AM
Schnapp (MagicalSafetyDragon)Today at 11:10 AM
soo lagged out
Schnapp (MagicalSafetyDragon)Today at 11:07 AM it’s lagged out stupid game

GhostfacE (fart squirrel)Today at 11:06 AM I keep getting server error. Won’t let me log in Ahhh I have like 7 massive fleets out

exceed (Velocirabbit)Today at 11:10 AM

Omg again phone nothing

I got fleets to trigger !

1 Like

Tick just ended. 5-6 min long.

2 Likes

Thanks @TheBigOne. Report shows at under 3 minutes for the tick itself:

Time has passed successfully.
total: 277

This means we have another problem: pageloads after the tick completes are adding another 2-3 minutes on top. Not good. :weary:

Which page were you trying to load?

1 Like

pretty much all of em. Map rankings military mostly

I was trying to load the HQ page.

1 Like

And refresh until tick finished😛

1 Like

Isn’t that 277 seconds? So almost 5 minutes?

3 minutes would be 180… or am I going mad?

2 Likes

Nah, you’re right. Long day here, brain is gone. :brain: :flight_departure:

Though, it seems we still have page load problems independent of the long tick. Bleh.

2 Likes

I pushed a change earlier today, the last few ticks have been under 3 minutes.

We still have work to do, but it should feel a little better now.

2 Likes

Thanks for working on it Pie. =)

1 Like

4 posts were split to a new topic: Staggered sub-ticks

With the new stuff your doing will it make ticks faster?

2 Likes

Yep, the backend transition i’m working on will provide us with general performance gains, which will include both faster pageloads across the board + faster tick processing.

Also, we’ve since paid for a better-performing server, so we should see some additional improvements already, though I wouldn’t expect them to be lighting fast just yet. There’s still work to be done.

2 Likes