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.
User avatar
Corbeau
Elite
Posts: 745
Joined: Mon Jan 13, 2014 11:13 pm

Server load - difference between AIs and human players

Postby Corbeau » Thu Aug 31, 2017 3:56 pm

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?

sveinung
Elite
Posts: 427
Joined: Wed Feb 20, 2013 4:50 pm

Re: Server load - difference between AIs and human players

Postby sveinung » Fri Sep 01, 2017 9:35 am

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: 745
Joined: Mon Jan 13, 2014 11:13 pm

Re: Server load - difference between AIs and human players

Postby Corbeau » Fri Sep 01, 2017 9:45 am

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)

sveinung
Elite
Posts: 427
Joined: Wed Feb 20, 2013 4:50 pm

Re: Server load - difference between AIs and human players

Postby sveinung » Fri Sep 01, 2017 10:23 am

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: 46
Joined: Thu Aug 27, 2015 7:27 am

Re: Server load - difference between AIs and human players

Postby VladimirSlavik » Fri Sep 01, 2017 11:16 am

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...