Revision 6853ce9...

Go back to digest for 24th July 2011

Optimization in Educational

Akarsh Simha committed changes in [kstars] /skyobjects:

+ Separate the test for significant gravitational lensing around the
sun from the actual lensing calculation. Now there are two methods
-- checkBendLight() and bendlight(), the former doing the job of
checking whether the skypoint is close enough to the sun to be
lensed by its gravity.

+ [Major] Recompute coordinates of a SkyPoint only when about a minute
has passed since the last recomputation. This means that precession,
nutation, aberration, are calculated only when there are
sufficiently large changes in time. This is expected to increase the
speed of recomputing the skymap, although I have not tested the

This is also a potentially dangerous change. I've not tested to
check that precession is recomputed when the step is sufficiently

File Changes

Modified 2 files
  • /skyobjects
  •   kstars/skypoint.cpp
  •   kstars/skypoint.h
2 files changed in total