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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: (PR#2477) Improved Auto-Explore (fwd)
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Sun, 9 Feb 2003 16:03:57 +0000 (GMT)

Note added in proof:  I did profiling myself, the results are quite strong 
in favour of using is_dist_finite (time spent on explorer_desirable is 0.0 
vs 0.4 sec)

I think patch is ready to go in as is.

G.


---------- Forwarded message ----------
Date: Sat,  8 Feb 2003 21:36:17 +0000
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
To: rt.freeciv.org@xxxxxxxxxxxxxx
Subject: Re: [freeciv-ai] Re: (PR#2477) Improved Auto-Explore

Okay, I made two changes:

1. Skip desire calculation for tiles we know we can't reach (using newly born
is_dist_finite function).

2. Fix another activity-related bug (activities really need a cleanup), where an
explorer, upon finishing exploring would not become available next turnbut only
the turn after that.

Patch attached.  I would be grateful if you could test if change 1 really
introduces some speedup (by profiling or any other means you know).  Then, if
you approve of my changes, we can commit.  Said he for the fifth time ;)

G.



Attachment: explorer25.diff
Description: Text document


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