Very long calculation of the turn

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

Very long calculation of the turn

Postby Kas Narayda » Mon Jan 18, 2021 4:00 pm

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: 455
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Very long calculation of the turn

Postby Ignatus » Tue Jan 19, 2021 3:16 pm

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: 1890
Joined: Tue Jan 29, 2013 6:54 pm

Re: Very long calculation of the turn

Postby cazfi » Tue Jan 19, 2021 9:46 pm

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

Postby Kas Narayda » Wed Jan 20, 2021 4:06 am

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

Postby Kas Narayda » Wed Jan 20, 2021 6:28 am

The final autosave.
Attachments
freeciv-T0286-Y01794-final.rar
(689.39 KiB) Downloaded 19 times

Ignatus
Elite
Posts: 455
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Very long calculation of the turn

Postby Ignatus » Wed Jan 20, 2021 6:06 pm

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

Postby Kas Narayda » Thu Jan 21, 2021 4:04 am

A mediocre game. It makes sense to play only with a person. The AI cheaters are full and miserable.

User avatar
Corbeau
Elite
Posts: 1128
Joined: Mon Jan 13, 2014 11:13 pm

Re: Very long calculation of the turn

Postby Corbeau » Thu Jan 21, 2021 12:12 pm

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!
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...