Page 1 of 1

Very long calculation of the turn

Posted: Mon Jan 18, 2021 4:00 pm
by Kas Narayda
I play on a 350x350 map, 18 players (17 AI). It's already 270 turn. The calculation of the turn takes several minutes (about 10). How to speed up the game?
Intel Pentium Core i5 6600, RAM 8 Gb, Freeciv 2.6.3 (GTK+3 client).

Re: Very long calculation of the turn

Posted: Tue Jan 19, 2021 3:16 pm
by Ignatus
I don't know how to do benchmarks but it's spoken that most of server's tc calculation is distributing workers by tiles and finding unit shortest paths. Maybe your server prints something on stdout?

Re: Very long calculation of the turn

Posted: Tue Jan 19, 2021 9:46 pm
by cazfi
Ignatus wrote:I don't know how to do benchmarks but it's spoken that most of server's tc calculation is distributing workers by tiles and finding unit shortest paths.
When there's AIs in the game, about 50% of the CPU time is spent by their cities looking for paths for their enemies to attack -> to see which units can arrive in a couple of turns, and thus are a threat.

Re: Very long calculation of the turn

Posted: Wed Jan 20, 2021 4:06 am
by Kas Narayda
I won this game. The last 285th turn lasted 15 minutes! Some AI players had 100-300 cities each. Tell me how to play on large maps with a large number of AI players? The computer does not develop its cities, but breeds them in large numbers and takes them. How to prevent spam of cities by AI player?
I apologize for my English - I use a translator.

Re: Very long calculation of the turn

Posted: Wed Jan 20, 2021 6:28 am
by Kas Narayda
The final autosave.

Re: Very long calculation of the turn

Posted: Wed Jan 20, 2021 6:06 pm
by Ignatus
Kas Narayda wrote:How to prevent spam of cities by AI player?
Good question... I have set minimal size for trade 4 and full trade size 8, and some AIs still tried "smallpox" strategy. Well, maybe they do it because it's usually the best they can do?

Re: Very long calculation of the turn

Posted: Thu Jan 21, 2021 4:04 am
by Kas Narayda
A mediocre game. It makes sense to play only with a person. The AI cheaters are full and miserable.

Re: Very long calculation of the turn

Posted: Thu Jan 21, 2021 12:12 pm
by Corbeau
Kas Narayda wrote:A mediocre game. It makes sense to play only with a person. The AI cheaters are full and miserable.
I couldn't agree more, my friend :)

This is why Longturn exists.
https://longturn21.blogspot.com/p/intro ... gturn.html