[Kstars-devel] KDE/kdeedu/kstars/kstars/tools
Alexey Khudyakov
alexey.skladnoy at gmail.com
Fri Oct 30 20:18:36 CET 2009
SVN commit 1042811 by khudyakov:
move setLocation from the loop. This improves speed of redrawing of sky
calendar significantly but it's still unacceptably slow.
CCMAIL: kstars-devel at kde.org
CCBUG: 204742
M +3 -1 calendarwidget.cpp
--- trunk/KDE/kdeedu/kstars/kstars/tools/calendarwidget.cpp #1042810:1042811
@@ -78,10 +78,12 @@
//Add points along curved edge of horizon polygons
int imonth = -1;
float rTime, sTime;
+
+ ksal->setLocation(data->geo());
while ( y == kdt.date().year() ) {
float t = float( kdt.date().daysInYear() - kdt.date().dayOfYear() );
ksal->setDate(&kdt);
- ksal->setLocation(data->geo());
+
rTime = ksal->getSunRise()*24.0;
sTime = ksal->getSunSet()*24.0 -24.0;
// kDebug()<<rTime<<" "<<sTime;
More information about the Kstars-devel
mailing list