Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Profiles from huge game
Home

[Freeciv-Dev] Re: Profiles from huge game

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Cc: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>, Sebastian Bauer <sebauer@xxxxxxxxxxx>, freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Profiles from huge game
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Sep 2001 09:31:38 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Thu, Sep 06, 2001 at 03:52:15PM -0700, Trent Piepho wrote:
> On Thu, 6 Sep 2001, Ben Webb wrote:
> >     This isn't strictly speaking true. Everywhere where
> > update_all_effects is currently being called, there needs to be some kind
> > of update of effects. However, the call can certainly be optimised. For
> > example, I suspect the main problem with the client is that all effects
> > for all cities are updated every time a city packet is received. It is
> 
> Do this means at the end of the turn, when a city packet for all cities is
> sent, that each city is recalculated each time.  So you have made an O(n)
> algorithm into an O(n^2) algorithm?  That's just really nice.  

> I suppose that when a city packet is received the client will update
> each city's graphic and line in the city list too.

This is not true. It only updates all effects. It may also update the
city dialog and the city list but this is independent of the patch.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Make it idiot-proof and someone will make a better idiot."


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