• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stellarium / stellarium / 2700
11%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2019 09:15AM UTC
Jobs 1
Files 614
Run time 49s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2700

push

travis-ci

web-flow
Fix planets orbits (#773)

* Planets: add some position getters methods

That takes a date as argument, so that we can compute the position of
a planet at any time without having to change the lastJDE.

* Simplify orbit computation code

- Remove all optimizations for the moment (makes the code very slow).
- Explicitly set the time in the positions function.
- Adjust the orbit position to suppress the parent body movement.  We do
  it manually here by subtracting the parent position shift.

* Use cache for planet positions

This replaces the old way of using tricks to avoid recomputing the
orbit.  We now use a cache so that recomputing several times the same
position should be fast enough.

Probably need to test it a bit to make sure it really works.  Also the
current cache implementation could be improved.

* Remove unused code

* Use a larger cache for planet position

At least larger that the orbit segments.  Here I use a safe factor of
two, that might be a bit too much.

* Only compute orbit when they are rendered

So that we don't spend time computing orbits of non visible planets.

* Remove Planet::computePositionWithoutOrbit

Since we compute the orbit only when needed now.

* Optimize orbit computation

I think there should be no need to use the heliocentric position.  This
is much faster like that because we don't make the parent planet
position cache dirty.

* Orbit: fix crash with Sun orbit rendering

9264 of 103457 relevant lines covered (8.95%)

16596.25 hits per line

Jobs
ID Job ID Ran Files Coverage
5 2700.5 (MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" TRANSLATE=false COVERAGE=true) 25 Sep 2019 09:15AM UTC 0
8.95
Travis Job 2700.5
Source Files on build 2700
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2700
  • 53d3baac on github
  • Prev Build on master (#2699)
  • Next Build on master (#2701)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc