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

                 Summary: List of road hiders to client side
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 08 May 2012 03:01:04 AM EEST
                Category: client
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.0

    _______________________________________________________

Details:

Curently we have only two road types, so the other one either hides or doesn't
hide the other. Once we support more road types, drawing code would need to
check each road type in case it's hiding one being drawn. Such iterations in
the core of all tile redraws would be very bad.
This patch adds list of hider road types for each road type that acts as sort
of cache for hiders lookup. It has same information as hidden_by vector, but
in a for that drawing code can access much more quickly in case there's
several road types that are not all hiding each other. This list is built in
client side only.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 08 May 2012 03:01:04 AM EEST  Name: RoadHidersCache.diff  Size: 6kB 
 By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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