Server load - difference between AIs and human players

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Server load - difference between AIs and human players

Post by Corbeau »

I'm curious, is there a difference between strain on the processor/memory/whole machine in these two cases: 1. Players are humans, meaning, it's a multiplayer game, and 2. Players are AIs, meaning, it's a single-player game?
--
* 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...
sveinung
Elite
Posts: 548
Joined: Wed Feb 20, 2013 4:50 pm

Re: Server load - difference between AIs and human players

Post by sveinung »

AI players uses a lot of resources compared to human players. The late game on a big map with many AI players can be extremely slow.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Server load - difference between AIs and human players

Post by Corbeau »

So you're actually saying that a multiplayer game is easier on the memory and the processor than the solo game with the same number of nations?

(Which does sound logical, but I always thought I was missing something)
--
* 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...
sveinung
Elite
Posts: 548
Joined: Wed Feb 20, 2013 4:50 pm

Re: Server load - difference between AIs and human players

Post by sveinung »

The problem for the AI is, as far as I know, the processor. Its CPU usage grows fast with map size, number of cities, number of units etc. A game with many nations on a huge map with many cities and units will be unplayable against AI opponents on a weak computer.
User avatar
VladimirSlavik
Posts: 47
Joined: Thu Aug 27, 2015 7:27 am

Re: Server load - difference between AIs and human players

Post by VladimirSlavik »

Computers usually wait for human input, this game is no different. With player actions spread out in time and using "bio" processing, the load is spread in time and low. Running an AI requires resources, so that's one additional load. Furthermore, when AI plays, it blazes through its turn fast. So all of the resource consumption happens faster.

To complicate matters further, the difference between AI play and human play is so high that you really have to plan for the load peaks during AI play. That means a lot of resources is waiting just for that peak load - sitting unused when the human ponders...
Post Reply