« Return to Thread: KDE/kdeedu/kstars/kstars/tools

KDE/kdeedu/kstars/kstars/tools

by Alexey Khudyakov :: Rate this Message:

Reply to Author | View in Thread

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@...
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;
_______________________________________________
Kstars-devel mailing list
Kstars-devel@...
https://mail.kde.org/mailman/listinfo/kstars-devel

 « Return to Thread: KDE/kdeedu/kstars/kstars/tools