Submitted by: cazfi
Submitted on: Tue 12 Jul 2011 01:30:06 AM EEST
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Discussion Lock: Any
Planned Release: 2.4.0
To save some CPU-cycles AI does not always calculate everything but uses good
enough existing values from different caches etc. I often find AI's bad
performance much worse problem than running out of CPU-cycles.
This patch adds some stuff to implement CPU-hog AI that hopefully performs a
bit better at the cost of using much more computing resources. In this initial
version only max number of cm-iterations is increased for CPU-hogs.
This patch makes it only easier to make CPU-hog version of freeciv. One
cannot change ai behavior runtime, but it still requires code change. CPU-hog
framework just makes that required code change one-liner. See comments in
player.h for full rationale.
Date: Tue 12 Jul 2011 01:30:07 AM EEST Name: CPUHog.diff Size: 2kB By:
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list