Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] [Patch][RFC] Reduce superfluous tile_info packets
Home

[Freeciv-Dev] [Patch][RFC] Reduce superfluous tile_info packets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch][RFC] Reduce superfluous tile_info packets
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Oct 2001 23:35:17 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

The attached patch is a rough first version of a patch which change
the server to only sent tile information if this information has
really changed.

Test: loading a normal game (1600AD) and pressing three times return.
Results (packet type 7 is tile info):

  without patch:
2:   [ 7]:  41882 packets;   376938 bytes total;     9 bytes/packet average
2: transmitted 534864 bytes in 44000 packets;average size per packet 12 bytes

  with patch:
2:   [ 7]:   4076 packets;    36684 bytes total;     9 bytes/packet average
2: transmitted 185739 bytes in 6000 packets;average size per packet 30 bytes

Note that 4000 packets are needed at the start to transfer all tiles
to the client. The human player has the Apollo Program.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "With a PC, I always felt limited by the software available.
   On Unix, I am limited by my knowledge."
    -- Peter J. Schoenster <pschon@xxxxxxxxxxxxxxxxx>

Attachment: change_field1.diff
Description: Text document


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