Very long calculation of the turn

Can't beat the AI? Is it too tame? Discuss the best strategies!
Post Reply
User avatar
Kas Narayda
Posts: 4
Joined: Mon Jan 18, 2021 3:45 pm
Location: Russian Federation

Very long calculation of the turn

Post 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).
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Very long calculation of the turn

Post 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?
cazfi
Elite
Posts: 3069
Joined: Tue Jan 29, 2013 6:54 pm

Re: Very long calculation of the turn

Post 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.
User avatar
Kas Narayda
Posts: 4
Joined: Mon Jan 18, 2021 3:45 pm
Location: Russian Federation

Re: Very long calculation of the turn

Post 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.
User avatar
Kas Narayda
Posts: 4
Joined: Mon Jan 18, 2021 3:45 pm
Location: Russian Federation

Re: Very long calculation of the turn

Post by Kas Narayda »

The final autosave.
Attachments
freeciv-T0286-Y01794-final.rar
(689.39 KiB) Downloaded 270 times
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Very long calculation of the turn

Post 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?
User avatar
Kas Narayda
Posts: 4
Joined: Mon Jan 18, 2021 3:45 pm
Location: Russian Federation

Re: Very long calculation of the turn

Post by Kas Narayda »

A mediocre game. It makes sense to play only with a person. The AI cheaters are full and miserable.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Very long calculation of the turn

Post 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
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Post Reply