Page 1 of 2

Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 7:00 pm
by BlackRain
Just curious what you all are experiencing. I am on turn 111 or somewhere thereabouts. It takes almost 2 minutes for each turn to process and for the next turn to begin. I feel like this is too long, anyone else experiencing this or longer end of turn times or is it just me that feels this way? After 111 turns, I have basically wasted around 3 hours of my play time just waiting for turns to process.

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 7:03 pm
by Vhalor
It can take some serious time, especially when a lot is happening. Smaller planets help with that though, as does aggressive expansion. What's dead does not take up processing power!

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 7:03 pm
by Naselus
I'd rather have long turn timers than an AI too stupid to play against. I read a book in between. But yes, I can see how this would discourage wider adoption of the game - it's been a very long increase between turns over time..

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 7:06 pm
by BlackRain
Of course I do not want the AI to become stupid lol, but I feel like it takes me out of the game because whenever I hit end turn, I go and do something else because I know it will take a while. This kind of draws me out every time. I end up in a sort of tug of war because the game is very good and I want to play it, but I hate that it takes too long for the next turn which puts me off a little.

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 7:37 pm
by Laiders
I don't have that problem psychologically but I'm still in the 60s on a normal - large (larger end of the range I think) so turn times probably aren't pushing two mins yet. I'll be honest I'm such a fiend at the moment I generally alt-tab and read/post here.

I really think the game could use a lot more executive summaries though. Too many reports are too terse and detailed. We need detail yes but I also need something to remind me of the big picture once in a while. I feel this would help with longer turns somewhat.

Wargames in general are very slow to play and have long turn times to boot. It's one of the factors that keeps them niche. Anything to help further optimise this or options to toggle how many major/minors spawn for a given size would be helpful.

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:12 pm
by ramnblam
Turn times are noticeable but not long on my rig (i7-9700F) but I generally want to see what the AI are doing around my borders anyway, animals and marauders just love bee lining towards your cities.

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:17 pm
by Jdane
Are you technically savvy people able to tell if this game is relying on a single core to make the needed calculations or not?

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:31 pm
by Laiders
Loading appeared to distribute evenly both the game itself and my save. Going to end turn now and see. Only using Windows resource monitor so I am mostly eyeballing this off dynamic graphs not getting highly technical and detailed readouts or anything.

Load does not always distribute evenly but it does distribute across my four cores (what my gaming laptop was very expensive at the time but it's like 4+ years old by now). Higher core counts may not get even utilisation of all cores depending on exactly how the game is coded but it will use multiple cores.

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:44 pm
by Jdane
Thanks for checking.

To get the discussion back on topic, I'm playing on a small planet, 15 zones populated, 4 major regimes, and my antiquated Intel Pentium G3220 dual-core clocked at 3 GHz according to Windows processed the 19th turn of the game in about 45 to 60 seconds according to my estimate (I didn't measure it scientifically at all).

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:47 pm
by GodwinW
ORIGINAL: Naselus

I'd rather have long turn timers than an AI too stupid to play against. I read a book in between. But yes, I can see how this would discourage wider adoption of the game - it's been a very long increase between turns over time..

Agree. But yes, it's quite long. If it could be optimized without compromise I'd be for it :)

RE: Anyone think end turn takes too long?

Posted: Sat Jun 13, 2020 8:53 pm
by zgrssd
ORIGINAL: BlackRain

Just curious what you all are experiencing. I am on turn 111 or somewhere thereabouts. It takes almost 2 minutes for each turn to process and for the next turn to begin. I feel like this is too long, anyone else experiencing this or longer end of turn times or is it just me that feels this way? After 111 turns, I have basically wasted around 3 hours of my play time just waiting for turns to process.
If you think 2 minutes are bad, think of it from the POV of the AI:
You turns can take 15 minutes easily, and that is just one player [;)]

In all seriousness: The game is quite detailed, so a lot of calculation before a player is even allowed to make choices.
The processing each AI has to do, scales exponentially with the number of AI's in the game.
So I fear, this is a unavoidable part of a large planet game.

RE: Anyone think end turn takes too long?

Posted: Sun Jun 14, 2020 4:58 am
by AttuWatcher
SSD / NVME drive helps.

You can also turn off "Show AI turn" in the prefs and that will save you around 10 seconds.

RE: Anyone think end turn takes too long?

Posted: Sun Jun 14, 2020 7:54 am
by Smidlee
PBEM has really long waiting time.[:D]

RE: Anyone think end turn takes too long?

Posted: Sun Jun 14, 2020 8:00 am
by Malevolence
ORIGINAL: Smidlee

PBEM has really long waiting time.[:D]

[:D]

RE: Anyone think end turn takes too long?

Posted: Sun Jun 14, 2020 9:23 am
by VoodooDog
no

RE: Anyone think end turn takes too long?

Posted: Mon Jun 15, 2020 2:02 am
by Twotribes
On largest world with all the bells and whistles and major pre war pop takes about 3 minutes for me right now but still early game.

RE: Anyone think end turn takes too long?

Posted: Mon Jun 15, 2020 3:20 am
by RecliningJohnnyD
I'm post turn 163 on a 4,5 ghz processor and an M2 SSD, turn-times are up to seven and a half minutes [:)]

Sometimes that's longer than my own turns at this stage and I'd be lying if I said it didn't take me out of the game.

I've noticed the save games get bigger. From two and a half MB to about 11 now. They also sometimes become smaller quite quickly, dropping almost a whole MB between turns.

RE: Anyone think end turn takes too long?

Posted: Mon Jun 15, 2020 3:55 am
by Clux
I think than it depends on the map size and amount of minors/majors, on my current game I'm at turn 74 and it only takes 30-45 seconds to finish the turn (Siwa class planet, with only 2 majors and about 5 minors left, I have conquered almost half the map). I have an R5 3600 and I have the game installed on my SSD.

RE: Anyone think end turn takes too long?

Posted: Mon Jun 15, 2020 5:01 am
by Stelteck
Did SSD installation make a difference ? According to the low size of the game, i though everything can be stored in RAM and so disk access are not relevant, but i may be wrong.

RE: Anyone think end turn takes too long?

Posted: Mon Jun 15, 2020 8:27 am
by Pi2repsilon
ORIGINAL: zgrssd

ORIGINAL: BlackRain

Just curious what you all are experiencing. I am on turn 111 or somewhere thereabouts. It takes almost 2 minutes for each turn to process and for the next turn to begin. I feel like this is too long, anyone else experiencing this or longer end of turn times or is it just me that feels this way? After 111 turns, I have basically wasted around 3 hours of my play time just waiting for turns to process.
If you think 2 minutes are bad, think of it from the POV of the AI:
You turns can take 15 minutes easily, and that is just one player [;)]

In all seriousness: The game is quite detailed, so a lot of calculation before a player is even allowed to make choices.
The processing each AI has to do, scales exponentially with the number of AI's in the game.
So I fear, this is a unavoidable part of a large planet game.
Unavoidable? No. Economically not feasible to develop for this developer, perhaps.

This problem for turn strategy games was largely solved decades ago, and it is simple in principle but the devil is in the details and depending on design it can be prohibitively expensive to design and implement. It can also be a memory-hog, depending on implementation.

Where you see 15 minute player turn for the AI to be bored, I see 15 minutes to make AI calculations allowing lightning fast AI turns. [:)]

The solution is to take advantage of the player's long turn times to calculate AI action calculations while the player is staring at the screen and taking his turn, stealing as many timeslices as possible where the player doesn't notice.

The idea is that you do this for every AI player in sequence acting after the player, thus creating the orders that each AI will execute in turn when it is their turn.

These calculations and simulated orders needed to make AI decisions are performed on a copy of the game state treated as if it was the AI's start-state (I simplify a bit). The first AI acting after the player gets a copy of the player's current game state, subsequent AIs get a copy of the previous AI's copy's end-state.

You then need to design invalidation conditions; I.e. which actions taken by a player won't invalidate any AI planning (in games with incomplete/hidden information many actions fall in this category), which will invalidate only a few AI orders, which will invalidate a category of planned actions, which will invalidate all orders for an AI player and force it to begin from scratch. This is much harder design work than it might sound. Note that it cascades down the AI sequence: The player does something that invalidates the orders of some of the AIs, the changes they have to recalculate will invalidate that of AIs downsequence from them. And so on. So the AI governor handing out timeslices for AI planning calculations will frequently have to revisit some AI players upsequence that it was otherwise done with.

With very strict invalidation making most player actions force complete recalculation you might as well drop the idea of using the player's turn to plan, with very loose invalidation the AI will perform many actions that are much poorer than it would if it didn't try to plan ahead this way. So the tricky part is to find a good balance.

In practice that means that the more AI players you have and the further down the AI sequence they are, the more their plans will be invalidated and they'll have to do a full AI update with no advance planning once it is their turn in the sequence. So good sequencing with the most requiring AI opponents (largest, biggest action space) handled first makes this work better - but if your game requires a fixed player order this is not an option.

Either way the AIs acting soonest after the player will have most of their planning already done in whole or in part when it is their turn.

Moreover, while ideally your invalidation conditions are such that the AI's playing performance is as good as if you didn't try to plan ahead but just did all calculations when it was the AI's turn, in practice unless the game is designed from the bottom up with the idea of timeslicing AI during the player's turn, it probably won't be.

It is a tricky balance deciding just how strict invalidation forcing recalculation you want to work with.

You might end up concluding that the benefits aren't worth the effort, especially if your game wasn't designed in a framework based on this in the first place or you've got a very small development team.

That's just a rough overview.

ANYHOW, whenever you play a turn-based strategy or tactics game that has generally fast AI turns despite being very complex, they are probably employing a variant of forwards planning by timeslicing the player's turn for AI use. After all, why let all that processing power go to waste while the player is staring at the screen, moving the mouse cursor, or thinking up his own plans?