Re: [Freeciv-Dev] Idea for 2.0
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- Re: [Freeciv-Dev] Idea for 2.0, (continued)
Re: [Freeciv-Dev] Idea for 2.0, Peter Schaefer, 2019/10/12
- Re: [Freeciv-Dev] Idea for 2.0, Daniel Sjolie, 2019/10/12
- Re: [Freeciv-Dev] Idea for 2.0, Peter Schaefer, 2019/10/12
- Re: [Freeciv-Dev] Idea for 2.0, Daniel Sjolie, 1999/07/15
- Re: [Freeciv-Dev] Idea for 2.0, Artur Biesiadowski, 1999/07/15
- Re: [Freeciv-Dev] Idea for 2.0, Peter Schaefer, 1999/07/17
- Re: [Freeciv-Dev] Idea for 2.0,
David Pfitzner <=
Re: [Freeciv-Dev] Idea for 2.0, Andy Black, 1999/07/17
|
|