Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2002:
[freeciv-ai] Re: README.AI

[freeciv-ai] Re: README.AI

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>, freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: README.AI
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Apr 2002 11:52:30 -0500

On Fri, Apr 26, 2002 at 11:56:42AM +0200, Raimar Falke wrote:
> On Fri, Apr 26, 2002 at 11:36:03AM +0200, Per I. Mathisen wrote:
> > * AI doesn't understand how to favor trade when it needs luxury.
> The CMA may help here.
> Mike: should be publish our thoughts about the AI and code movement?

yes. I'll write a draft for this section.

> > * City tile values are not cached; wastes CPU time.
> While looking at performance I implemented such thing. Result: very
> small speedup. You just need to flush the cache too often:
>  - everything which changes the happy state of the city (change of the
>  citizen assigments, new trade routes, ...)
>  - if government changes
>  - if tiles on the city map changes
>  - if city grows
> So in short you have to invalidate the cache at least every turn and
> maybe even multiple times a turn.

probably should eliminate then.


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