Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2002:
[Freeciv-Dev] Re: packet batches? (was: [Patch] Making city report list
Home

[Freeciv-Dev] Re: packet batches? (was: [Patch] Making city report list

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Reinier Post <rp@xxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: packet batches? (was: [Patch] Making city report list faster)
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Tue, 11 Jun 2002 02:50:46 +0100 (WET DST)

On Mon, 10 Jun 2002, Reinier Post wrote:

> On Mon, Jun 10, 2002 at 08:52:41PM +0200, Raimar Falke wrote:
>
> > So if you can depose a lot of packets at the server AND you have a low
> > connection number AND this is the first cycle after a new turn you can
> > get a lot of move requests executed by the server before your enemy
> > can do anything.
> >
> > It would be fair to limit the inner loop to only one execution.
> >
> >     Raimar
>
> That doesn't really help.  With one execution per player, the player
> with the longer incoming packet queue still gets the remaining packets
> executed at once.

If your problem is the fixed order of reads just randomize the connections
around each time you enter the loop.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa





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