URL:
  <http://gna.org/patch/?2791>

                 Summary: CPUHog
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 12 Jul 2011 01:30:06 AM EEST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.0

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 12 Jul 2011 01:30:07 AM EEST  Name: CPUHog.diff  Size: 2kB   By:
cazfi

<http://gna.org/patch/download.php?file_id=13527>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2791>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to