Complete.Org: Mailing Lists: Archives: freeciv-ai: February 2003:
[freeciv-ai] Re: (PR#2477) Improved Auto-Explore
Home

[freeciv-ai] Re: (PR#2477) Improved Auto-Explore

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: cameron@xxxxxxxxxx
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#2477) Improved Auto-Explore
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Wed, 5 Feb 2003 21:35:14 -0800
Reply-to: rt.freeciv.org@xxxxxxxxxxxxxx

Cameron Morland via RT wrote:
> On Wed, Feb 05, 2003 at 11:07:41AM -0800, Gregory Berkolaiko via RT wrote:

>>before PART 1.  Still, when warmap does have to be calculated, the whole
>>thing is significantly slower.  The pig is is_within_own_city_radius,
>>according to my analysis (60%).  But unless we remove it altogether, I
>>don't know what can be done.  likely_ocean is also quite bad (30%).  But
>>maybe we can help by checking the warmap distance first and if it is
>>outside reasonable bounds (even MAXCOST would be better than nothing), not
>>call explorer_desirable at all.  This should work for bigger maps.
> 
> 
> I think we could remove is_within_own_city_radius, or simply check a
> square as big as the city, which should be considerably faster.

It should be easy to generate this information once, for the entire 
world.  It can be used by everyone and only sometimes needs to be 
recalculated (actually all changes only require local recalculation, but 
that could be unstable).

jason




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