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

Stellarium / stellarium / 46265904151

29 Nov 2026 01:08PM UTC coverage: 11.15% (+0.07%) from 11.079%
46265904151

push

github

web-flow
Skip DSOs too faint to be drawn when traversing the nebula grid (fix #4437) (#5207)

NebulaMgr::draw() visited every DSO whose position is in the viewport and
rejected most of them one by one in DrawNebulaFuncObject. With the extended
catalog (1.1M objects) that is ~600k objects per frame at a 117 deg FOV,
even when only a few dozen markers are shown.

Give StelSphericalIndex an optional per-element threshold and keep the
minimum threshold of each node's subtree, plus a threshold-limited variant of
processIntersectingPointInRegions() that skips elements and whole subtrees
whose threshold is above a given value. The traversal order of the remaining
elements is unchanged.

NebulaMgr stores as threshold the lowest (brightest) hints/labels limit at which a
DSO can still draw anything (its visibility level, 3 mag less when it has outlines),
and draw() passes the current max(hints, labels) limit, capped by the custom
nebula magnitude limit. The thresholds are computed after the catalog and
outlines are loaded and when the surface brightness option is toggled (25-40 ms
for 1.1M objects).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

98 of 116 new or added lines in 5 files covered. (84.48%)

2 existing lines in 2 files now uncovered.

15618 of 140066 relevant lines covered (11.15%)

22484.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/core/modules/Nebula.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc