-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vectorize markers of diffuse and dark nebulas #3166
Vectorize markers of diffuse and dark nebulas #3166
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
Yes, very welcome! I did not test performance, though. Any change you can see? |
No difference on my machine. |
309e3f5
to
705a112
Compare
Good! |
5e1799d
to
fd4ef34
Compare
Tested on RPi3 for the same sky part: no speed penalty. It even may be faster in the hundredths (seen typically 4.88 for master vs 4.91 for this, but both values were fluctuating by ±0.2 ... no, cannot really say which is faster). |
Do you change all icons? Globulars are also multi-resolution, and galaxies may want that as well. Open clusters may need a very different method for the multi-dots. Maybe make separate private drawDiffuseNebula(pos, size, ...) etc. methods for them (also to combine "cluster with nebulosity" - this could even become two-colored), codefactor.io already complains about "very complex method", and it can only get longer. |
No, I only changed two types of nebulas: the rounded-rectish ones. I intend to work on others separately, since they might require more work (especially the dotted ones, where simple lines might not look nice enough). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good and works well, thanks. If you want to change others later, I can approve it now.
It would be wise to - at least in the next round - refactor a bit and make separate drawing methods to avoid too complex code.
Yes, I did think of this, but decided that I'll first make all the meat and see what common parts can be combined and extracted, and then decide how exactly to refactor. |
Hello @10110111! Please check the fresh version (development snapshot) of Stellarium: |
Hello @10110111! Please check the latest stable version of Stellarium: |
Description
Currently the nebular markers are made of a hierarchy of similar rectangles differing only by width of their lines. This is ugly technically, and it doesn't look nice when the nebula has large size on the screen.
This PR replaces the texture-based diffuse (and now also dark) nebula markers with a line-based scalable one. I tried to make it look mostly the same as the old version, just less pixelized, and without the fancy gradient (this is for simplicity and performance; tell me if you dislike it).
Screenshots
Old
New
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: