Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Idea for 2.0
Home

Re: [Freeciv-Dev] Idea for 2.0

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: schaefer@xxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Idea for 2.0
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 17 Jul 1999 21:40:36 +1000 (EST)

Peter Schaefer wrote:

> Artur Biesiadowski wrote:

> > For now it seems that every map is send by one tile at time. It might be
> > good in some cases, but when for example two players exchange maps in
> > late game it is an overkill (if I understand it correctly each tile is
> > 
> Some time ago someone - I think Trent or Mitch - did mention something
> about building big packets from small ones.
> I thought this did something with the tile packets too.
> Maybe the idea was dropped because the authors thought tcp/ip itself
> should be smart enough (Nagle Algorithm) to merge small packets during 
> transfer.
> Or maybe I did not understand what he was really talking about :-)
> More likely.

What you may be thinking of is the ability which currently
exists to "buffer" a series of communication; eg, in maphand.c

void send_all_known_tiles(struct player *dest)
{
...
      connection_do_buffer(pplayer->conn);
      for(y=0; y<map.ysize; y++)
        for(x=0; x<map.xsize; x++)
          if(map_get_known(x, y, pplayer)) {
            map_clear_known(x, y, pplayer);
            light_square(pplayer, x, y, 0);
          }
      connection_do_unbuffer(pplayer->conn);
    }
}

-- David

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