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

                 Summary: Unit class cache about roads providing movement
bonus
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 02 May 2016 07:19:37 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.5.5, 2.6.0, 3.0.0

    _______________________________________________________

Details:

Add list of roads that 1) are native to class and 2) provide movement bonus to
unit class caches.
Use of that list instead of iterating over all the road types and then
checking which ones provide movement bonus and are native to the unit in
question speeds up tile_move_cost_ptrs() significantly - measured in S2_6
(where so far all the testing of the patch has been made - S2_5 porting I did
just now)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 02 May 2016 07:19:37 AM EEST  Name: ClassBonusRoadsCache.patch 
Size: 4kB   By: cazfi

<http://gna.org/patch/download.php?file_id=27265>
-------------------------------------------------------
Date: Mon 02 May 2016 07:19:37 AM EEST  Name: ClassBonusRoadsCache-S2_5.patch 
Size: 6kB   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to