[freeciv-ai] Re: (PR#2477) Improved Auto-Explore
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
Message not available
[freeciv-ai] Re: (PR#2477) Improved Auto-Explore, Gregory Berkolaiko via RT, 2003/02/06
|
|