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.
This commit is contained in:
Andrew Davie 2016-03-30 02:15:26 +11:00
parent 63ff22b6ab
commit 1fedd78e23

View file

@ -331,15 +331,15 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
&& !ts.points.isEmpty()) // hmmm. 0-point tracks happen, but.... how? && !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)); ts.renders.add(new Renderable.StandardTrack(ts.points, 17));
// TODO : enable these to see how the experimental conveyor, altitude, speed, waypoint renders work // 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.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.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()); ts.recalculateRenderScales(view.getZoom());