[Marble-devel] performance issue

Konrad Enzensberger e.konrad at mpegcode.com
Wed Nov 27 21:30:10 UTC 2013


Hi,

i am facing a preformance problem in following situation:

center the map to antimeridian/equator ( longitude w180, latitude 0),
enable the coordinate-grid (Graticule plugin), zoom in to altitude e.g. 0.8km,
panning the map in this situation is verry slow.

Reason for this are two "while" loops in Graticule plugin methode:
renderLongitudeLines(...)

In this case, the viewport latlonbox west coordinate is something like 179,
the viewport latlonbox east coordinate is something like -179,

The first while loop runs from "eastLineLon" (-179,) to 180 by a step of 0.005 ,
the second while loop runs from "westLineLon" (179,) to -180 by a step of 0.005 

Running this loops are verry time consuming,
but in case of  viewLatLonAltBox.crossesDateLine() is true,
all we need is calculating the longitude lines:

from eastLineLon to -180 and from 180 to westLineLong 

Find attached a bugfix , maybe some of the marble developers
like to add it to git branch,

br, konrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20131127/2c898d40/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GraticulePlugin.cpp
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20131127/2c898d40/attachment-0001.ksh>


More information about the Marble-devel mailing list