Ignore:
Timestamp:
2017-03-21T13:50:17+01:00 (7 years ago)
Author:
michael2402
Message:

MapCSS performance: Skip drawing multipolygons earlier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r11758 r11759  
    443443        if (!r.isDisabled() && !multipolygon.getOuterWays().isEmpty()) {
    444444            for (PolyData pd : multipolygon.getCombinedPolygons()) {
     445                if (!isAreaVisible(pd.get())) {
     446                    continue;
     447                }
    445448                MapViewPath p = new MapViewPath(mapState);
    446449                p.appendFromEastNorth(pd.get());
    447450                p.setWindingRule(Path2D.WIND_EVEN_ODD);
    448451                Path2D.Double pfClip = null;
    449                 if (!isAreaVisible(p)) {
    450                     continue;
    451                 }
    452452                if (extent != null) {
    453453                    if (!usePartialFill(pd.getAreaAndPerimeter(null), extent, extentThreshold)) {
Note: See TracChangeset for help on using the changeset viewer.