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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Fri, 26 Oct 2001 06:15:43 -0700 (PDT)

--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> With the two patches applied the biggest packets are still city_info
> and player_info. But only a small amount of them change. So I'm
> thinking of a bitfield at the start of the packet which tells which
> fields have changed and all fields which aren't changed are also not
> submitted. Another idea is to not use a bitfield but chunked
> approach. The serialized city_info can look like this:
>  int city_id;
>  char PRODUCTION_HAS_CHANGED;
>  int new_production;
>  char SHIELD_STOCK_HAS_CHANGED;
>  int new_shield_stock;
>  char END_OF_PACKET;
>

The bitfield approach is probably going to be far shorter. I prefer the chunked
approach though, because that is more human readable. 



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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