Celestia 1.7.0 Development Thread

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
Lafuente_Astronomy
Moderator
Posts: 295
Joined: 04.08.2018
Age: 21
With us: 11 months 14 days
Location: Cebu, Philippines
Contact:

Post #421by Lafuente_Astronomy » 10.06.2019, 13:52

pirogronian wrote:The only think I can imagine is outdated OpenGL commands, which modern drivers don't perform efficently.

Pretty much. Is there a chance you can update the OpenGL commands to be up to date with the latest drivers?

Added after 1 minute 31 seconds:
And also, if done, will it greatly increase the performance of Celestia as a whole?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 132
Joined: 05.01.2018
With us: 1 year 6 months
Location: Wrocław

Post #422by pirogronian » 10.06.2019, 13:57

Lafuente_Astronomy wrote:Is there a chance you can update the OpenGL commands to be up to date with the latest drivers?
onetwothree already is working on it.

Lafuente_Astronomy wrote:if done, will it greatly increase the performance of Celestia as a whole?
I have no idea.

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #423by john71 » 10.06.2019, 14:28

pirogronian, I have multiple star barycenters orbiting a black hole, gas giants with many moons, the Earth-like moons have sometimes hundreds of spacecrafts around them + large cities on the surface.

pirogronian
Developer
Posts: 132
Joined: 05.01.2018
With us: 1 year 6 months
Location: Wrocław

Post #424by pirogronian » 10.06.2019, 14:33

john71 wrote:I have multiple star barycenters orbiting a black hole, gas giants with many moons, the Earth-like moons have sometimes hundreds of spacecrafts around them + large cities on the surface.

It would be useful to know exactly when lagging occurs: what kind of objects are in field of view (and their average numbers).

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #425by john71 » 10.06.2019, 14:37

And very large textures, but dds types.

Added after 4 minutes 7 seconds:
pirogronian, The lagging occurs when there are a lot of objects in visible range and you change the view rapidly. It is not a "freezing", it is a very visible "lagging" of a lot of objects.

Added after 4 minutes 32 seconds:
It usually happens near planets with very high resolution textures (3 levels, 32k) and dozens of starships or space stations.

Topic author
onetwothree
Developer
Posts: 227
Joined: 22.09.2018
With us: 9 months 26 days

Post #426by onetwothree » 10.06.2019, 21:23

Lafuente_Astronomy wrote:And also, if done, will it greatly increase the performance of Celestia as a whole?

It depends on OS, video card and drivers used. On my old system with fullhd monitor I had ~40 fps on GNU/Linux with free drivers while on Win7 with proprietary drivers there were ~70 fps. Perf said that CPU was mostly occupied by memory coping functions. With modern OpenGL we can greatly decrease number of such copy invocations (not for star field however).

Avatar
Lafuente_Astronomy
Moderator
Posts: 295
Joined: 04.08.2018
Age: 21
With us: 11 months 14 days
Location: Cebu, Philippines
Contact:

Post #427by Lafuente_Astronomy » 10.06.2019, 21:30

onetwothree wrote:It depends on OS, video card and drivers used. On my old system with fullhd monitor I had ~40 fps on GNU/Linux with free drivers while on Win7 with proprietary drivers there were ~70 fps. Perf said that CPU was mostly occupied by memory coping functions. With modern OpenGL we can greatly decrease number of such copy invocations (not for star field however).

That's good to know. In this way, Celestia will be able to handle much more items better. With regards to star field, Janus was able to increase its size on some of his forks, so there must be another aspect of Celestia's programming that can be fixed to increase star field size.
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

Janus
Posts: 390
Joined: 13.08.2016
With us: 2 years 11 months

Post #428by Janus » 10.06.2019, 22:45

What I reset was a limit designed to keep rounding errors in positioning from getting out of hand.
Changing the underlying limit requires doing positioning in double instead of single. DOUBLE replacing FLOAT to be exact.
Doing that is a lot of work.
There are places where bit sized variables are assumed, so all of those need to be switched.

I made a fork with DOUBLE in the database and starting on switching everything over, but I never got any feedback on it, so I dropped the work.
It will be several weeks, or maybe months, before I can start on Celestia again.
My current job is a massive P.I.T.A., teaching programmers and engineers to communicate.
Engineers have no respect for stack space, memory, explaining things that are implicit to them.
Programmers have no respect for units actually used in the field being used in the program, why the UI needs to be based on the actual machine, or explaining things that are implicit to them.
It would be faster to just do the whole job myself, but they need to be able to maintain it after I leave.
The pay is great though, even if I do feel more like a referee than anything else.


Janus.

Avatar
Lafuente_Astronomy
Moderator
Posts: 295
Joined: 04.08.2018
Age: 21
With us: 11 months 14 days
Location: Cebu, Philippines
Contact:

Post #429by Lafuente_Astronomy » 11.06.2019, 01:08

Janus wrote:made a fork with DOUBLE in the database and starting on switching everything over, but I never got any feedback on it, so I dropped the work.

Perhaps you can ask the devs to try that out and maybe it can be used in the development of Celestia 1.7.0
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 132
Joined: 05.01.2018
With us: 1 year 6 months
Location: Wrocław

Post #430by pirogronian » 11.06.2019, 06:43

john71 wrote:It usually happens near planets with very high resolution textures (3 levels, 32k) and dozens of starships or space stations.

Modern graphics engines optimizes multiple objects and complex meshes view by dedicated octrees. In Celestia octrees are only for stars and dsos. So, Celestia wll render all objects within current planetary system. At least I think so.

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #431by john71 » 11.06.2019, 10:37

pirogronian, As I know Celestia won't load any textures or meshes if it does not "see" them. But the problem is surely not with the very large meshes or textures, because they work fine after loading them into memory.

The problem is with a lot of objects, orbits etc., which are simultaneously present.

So it should be an octree or an inner processing problem. Celestia is not able to use more CPU power to process more data.
:think:

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #432by john71 » 30.06.2019, 11:05

Are there any new builds? If there are, can we get a new exe file here?

It would be appreciated. :smile:

Topic author
onetwothree
Developer
Posts: 227
Joined: 22.09.2018
With us: 9 months 26 days

Post #433by onetwothree » 30.06.2019, 17:35

Not yet, i'll recheck if we have something "user-visible".

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #434by john71 » 30.06.2019, 18:14

Thanx!

Topic author
onetwothree
Developer
Posts: 227
Joined: 22.09.2018
With us: 9 months 26 days

Post #435by onetwothree » 30.06.2019, 20:48

We don't have many changes since the last build: luajit is supported on all platforms not only GNU/Linux and it's preferred over "usual" Lua. Some OpenGL1.0 code was rewritten using OpenGL2.0/OpenGL2.0+ functions, basically it's not worth compiling.

Avatar
Goofy
Posts: 238
Joined: 30.08.2011
With us: 7 years 10 months
Location: Italy

Post #436by Goofy » 02.07.2019, 10:46

Hi Janus.
Sorry for this, it's surely my fault, but I got lost among the lot of messages and updates here. :cry:
So my request: could you please release the actually final and TOTAL version, including all the changes performed till now?
This would be very appreciated by me, and surely by many other people.
Thank you anyway for what you are doing.
Goofy :smile:
"Something is always better than nothing!"
ASUS G75VX4007H- Intel i7 3630QM, 2.4 GHz-SSD 250GB+SSD 1TB, SATA 3-32GB DDR3 1600 MHz- Nvidia GeForce GTX 780MX 3 GB

Janus
Posts: 390
Joined: 13.08.2016
With us: 2 years 11 months

Post #437by Janus » 02.07.2019, 14:15

Final and total version does not apply to an open source program, especially a work in active progress.

However, if you are referring to the current version, that I can help with.
Here is Commit 5528 vanilla.
As usual for my stuff, this is a non official release.
VS2015, static linkage, no dependencies.
I do not have a QT version, I do not currently have QT installed.
If my schedule permits I will bring a few of my tweaks into this and post it in my forking thread.

Janus.

EDIT: Had to flex my bad spalling.
#()&^#@%) Autocorrect!
Attachments
Celestia-5528-Vanilla.7z
(2.75 MiB) Downloaded 16 times

Avatar
Goofy
Posts: 238
Joined: 30.08.2011
With us: 7 years 10 months
Location: Italy

Post #438by Goofy » 03.07.2019, 12:33

Hi Janus, don't worry, English is not my language too. :wink:
Yes, that's what I was asking for, thanks a lot, appreciated.
Bye

Goofy :smile:
"Something is always better than nothing!"
ASUS G75VX4007H- Intel i7 3630QM, 2.4 GHz-SSD 250GB+SSD 1TB, SATA 3-32GB DDR3 1600 MHz- Nvidia GeForce GTX 780MX 3 GB

john71
Posts: 439
Joined: 10.08.2016
With us: 2 years 11 months

Post #439by john71 » 09.07.2019, 14:54

In the past few months I made a lot of videos using Celestia. My question is: is it possible to implement a higher level anti-aliasing option, plus a saturation, color editing and contrast/brightness function? It would make the look and feel of Celestia much more professional in my opinion.

Topic author
onetwothree
Developer
Posts: 227
Joined: 22.09.2018
With us: 9 months 26 days

Post #440by onetwothree » 10.07.2019, 08:28

We don't have enough human power for this unfortunately. You can write a more expanded feature request and we'll add it to our issue tracker in hope that somebody will pick it up for implementation.


Return to “Development”

Who is online

Users browsing this forum: john71, Kochav Israel And 4 guests