[freeciv-ai] Re: New settler code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Per I. Mathisen wrote:
On Sun, 13 Apr 2003, Mike Kaufman wrote:
On Sun, Apr 13, 2003 at 08:59:17PM +0100, Gregory Berkolaiko wrote:
Now I finally got to citymap and I don't like the concept.First of all,
it means that AI players work in coordination: they do not try to make
cities on others' spots.Secondly, I don't like mixing server and AI and
here you have server creating a city and putting it on AIs map.I feel
that citymap should be maintained on per-player basis by players
themselves.This will lead to more CPU usage, but I think this is the
Amen. This is exactly what I'm talking about Per. Please do not continue
down the path of more tightly integrating AI into the server.
Apparently you don't appreciate the genius of this code ;)
Duplicating the map for each player will not consume more CPU, but more
memory. The current implementation uses 61kb. Multiply by 32 players, and
you spend 3mb.
But each player just needs one bit of information for each tile, right?
So 97% of this 3mb is empty, and could be eliminated if you used a
bitfield.
Moreover, for systems where std_bool uses a char values as boolean, the
3mb is reduced to 750k anyway.
jason
- [freeciv-ai] Re: New settler code, (continued)
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/15
- [freeciv-ai] Re: New settler code, Mike Kaufman, 2003/04/15
- [freeciv-ai] Re: New settler code, Mark Metson, 2003/04/15
- [freeciv-ai] Re: New settler code, Ross Wetmore, 2003/04/16
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/16
- [freeciv-ai] Re: New settler code, Ross Wetmore, 2003/04/16
- [freeciv-ai] Re: New settler code, Raimar Falke, 2003/04/17
- [freeciv-ai] Re: New settler code,
Jason Dorje Short <=
- [freeciv-ai] Re: New settler code, Mike Kaufman, 2003/04/14
- [freeciv-ai] Re: New settler code, Raimar Falke, 2003/04/14
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/14
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/26
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/11
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/12
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/12
[freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/07
|
|