Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] [PATCH] citydlg packet traffic (PR#1234)
Home

[Freeciv-Dev] [PATCH] citydlg packet traffic (PR#1234)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] citydlg packet traffic (PR#1234)
From: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>
Date: Tue, 15 Jan 2002 11:57:54 -0800 (PST)

the attached patch does four semi-related things:

1. move city options widgets to an array. (code cleanup, reduction)
2. stop sending city_options packets unless they actually changed.
   It was sending a packet for every button that was different when
   you switched cities. That could mean up to 6 (7 maybe) useless packets 
   per switch.
3. don't send a worklist packet on every city dialog close, only if the 
   worklist has changed.
4. don't update the worklist editor twice on city switch. I'm not sure
   what I was thinking here.

there really shouldn't be any issues with it (hopefully).

-mike

Attachment: city_packets.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [PATCH] citydlg packet traffic (PR#1234), Mike Kaufman <=