Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2003:
[freeciv-ai] Re: New settler code

[freeciv-ai] Re: New settler code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: New settler code
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 14 Apr 2003 17:41:26 +0000 (GMT)

On Mon, 14 Apr 2003, Jason Dorje Short wrote:
> > 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.

Uh, from where do you get the idea that we only need one bit of
information? We need an int for the unit/city id, and if we only split up
the 'crowdnedness' part, a char at least will be needed, since we increase
this value by one _for each city that has this tile within its radius__.

  - Per

[Prev in Thread] Current Thread [Next in Thread]