[Freeciv-Dev] Re: The implementation if freeciv ID numbers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, 19 Mar 2000, Jeff Mallatt wrote:
> At 2000/03/18 14:10 , Thue Janus Kristensen wrote:
> >So before I begin to pile more use if the current ID system on top, is there
> >any reason why we couldn't just use an 32-bit int counting ever upwards
> (well,
> >that would limit the number of units in the game to 4294967296 ever).
>
> If every civilization's ecomomy could build ten units per second, and there
> were 13 civilizations, the game could last at most a year (unless I screwed
> up the arithmetic).
>
> I don't see any reason to not do this.
>
> jjm
The reason would be that we could use unsigned shorts instead of ints in most
packets, saving 2 bytes.
-Thue
|
|