Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] [Patch] CMA2.0
Home

[Freeciv-Dev] [Patch] CMA2.0

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] CMA2.0
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Oct 2001 18:07:09 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

Attached is the all-new version 2.0 of the citizen management
agent. Changes since 1.0:
 - more or less rewrite of the core algorithm
 - more or less rewrite of the GTK gui. It now has sliders for freely
 adjustable weights and surpluses.
 - the user can now require a happy city and/or set a weight for a
 happy city
 - uses common/timing instead of gettimeofday
 - used a more elegant way to get the change across the wire
 - the file client/agents/citizen_management_frontend_gtk is now at
 client/gui-gtk/citizen_management_agent_frontend_gtk
 - Makefile.am changes

About speed: varies between 2.45ms for a city of size 1 and 320ms for
a city of size 21 for cold caches. With hot caches this goes down
<0.1ms for size 1 and 40ms for size 21. Caches however have to be
cleared if the server sends a city info packet. Because this city info
could mean that the calculation foundation has changed (global tax
rate change for example). Also the number goes down if "normal"
requirements (food>0 for example) are used. Such requirements limit
the search space a big way.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Last year, out in California, at a PC users group, there was a demo of
  smart speech recognition software. Before the demonstrator could begin
  his demo, a voice called out from the audience: "Format c, return. Yes,
  return." Damned short demo, it was.

Attachment: cma2_0.diff.gz
Description: GNU Zip compressed data


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