<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16736">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>i am facing a preformance problem in following 
situation:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>center the map to antimeridian/equator ( longitude 
w180, latitude 0),</FONT></DIV>
<DIV><FONT size=2 face=Arial>enable the coordinate-grid (Graticule plugin), zoom 
in to altitude e.g. 0.8km,</FONT></DIV>
<DIV><FONT size=2 face=Arial>panning the map in this situation is verry 
slow.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Reason for this are two "while" loops in Graticule 
plugin methode:<BR></FONT><FONT size=2 face=Arial><FONT 
size=2>renderLongitudeLines(...)</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Arial><FONT size=2>In this case, the viewport latlonbox 
west coordinate is something like 179,</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=2>the viewport latlonbox east coordinate 
is something like -179,</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Arial><FONT size=2>The first while loop runs 
from "<FONT size=2>eastLineLon" (-179,) to 180 by a step of 0.005 
,</FONT></DIV></FONT></FONT>
<DIV><FONT size=2 face=Arial>the second while loop runs from "w<FONT 
size=2>estLineLon" (179,) to -180 by a step of 0.005 </FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Running this loops are verry time 
consuming,</FONT></DIV>
<DIV><FONT size=2 face=Arial>but in case of  
viewLatLonAltBox.crossesDateLine() is true,</FONT></DIV>
<DIV><FONT size=2 face=Arial>all we need is calculating the longitude 
lines:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>from eastLineLon to -180 and from 180 to 
westLineLong</FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Find attached a bugfix <FONT size=2>, maybe some of 
the marble developers</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial>like to add it to git branch,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>br, konrad</FONT></DIV></BODY></HTML>