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



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



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to