From 1fedd78e23083fea94fd7587228dc57cc5aad1de Mon Sep 17 00:00:00 2001 From: Andrew Davie Date: Wed, 30 Mar 2016 02:15:26 +1100 Subject: [PATCH] Removed all the renderers, except for the plain-vanilla one. This gives a simple GPX track that is drawn with asynchronous point reduction to improve the speed of display. Also, the simple region-based culling gets rid of entire tracks from the draw pipeline for further sppedups. --- OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index e853924d90..db9ab1399f 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -331,15 +331,15 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex && !ts.points.isEmpty()) // hmmm. 0-point tracks happen, but.... how? { - ts.renders.add(new Renderable.Altitude(ts.points, 50, 128)); + //ts.renders.add(new Renderable.Altitude(ts.points, 50, 128)); ts.renders.add(new Renderable.StandardTrack(ts.points, 17)); // TODO : enable these to see how the experimental conveyor, altitude, speed, waypoint renders work //ts.renders.add(new Renderable.Conveyor(ts.points, view, 20, 250)); - ts.renders.add(new Renderable.DistanceMarker(ts.points, view, 1000)); + //ts.renders.add(new Renderable.DistanceMarker(ts.points, view, 1000)); //ts.renders.add(new Renderable.Speed(ts.points, 50, 128)); - ts.renders.add(new Renderable.Arrows(ts.points,view,10,250)); + //ts.renders.add(new Renderable.Arrows(ts.points,view,10,250)); } ts.recalculateRenderScales(view.getZoom());