[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Wed Jun 14 06:51:37 CEST 2006
SVN commit 551264 by harris:
Speed up drawing stars. Thanks for the ideas, James.
(1) Move color calculation out of draw loop. StarObject now has a
static QMap member that holds QColors for each spectral type. These
colors are updated once per draw cycle, to match the current state:
+ if using Antialiased drawing and map is not slewing, use full
saturated colors
+ if AA is off, or map is slewing, desaturate the colors
(2) Draw star labels in a separate loop, so we don't have to reset the
Font and Pen color for each star.
(3) Set the QBrush color outside the draw loop.
CCMAIL: kstars-devel at kde.org
M +45 -22 skycomponents/starcomponent.cpp
M +32 -40 starobject.cpp
M +39 -5 starobject.h
More information about the Kstars-devel
mailing list