[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]
--- 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
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, (continued)
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raahul Kumar, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raimar Falke, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raahul Kumar, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Michael Stefaniuc, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raahul Kumar, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Jason Dorje Short, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raahul Kumar, 2001/10/25
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raimar Falke, 2001/10/26
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Reinier Post, 2001/10/26
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raimar Falke, 2001/10/26
- [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets,
Raahul Kumar <=
[Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets, Raimar Falke, 2001/10/25
|
|