MainBeltAsteroids.ssc

Report bugs, bug fixes and workarounds here.
Topic author
-}Luciusperca-{
Posts: 7
Joined: 24.11.2006
With us: 17 years 11 months

MainBeltAsteroids.ssc

Post #1by -}Luciusperca-{ » 26.11.2006, 11:25

Hi,

I downloaded the "MainBeltAsteroids.ssc" and put it into the celestia extras folder.
I started Celestia and after 30min Celestia was still loading it.
Is that normal???

The .ssc file is 90mb big.

Must I wait longer?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 26.11.2006, 13:24

You'll have to describe your hardware configuration in detail before anyone can guess if that's "normal" for your system.

If "show orbits" is enabled, then it will take a very long time to calculate all of the orbital paths for the thousands of asteroids defined in that Addon. Slower cpus will take longer, of course. Celestia's window won't show anything until it has precalculated all of those paths. They are only calculated once, fortunately, not for every screen update.
Selden

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #3by chris » 26.11.2006, 17:43

30 minutes seems like a very long time . . . How much RAM do you have in you computer?

--Chris

Johaen
Posts: 341
Joined: 14.01.2006
With us: 18 years 10 months
Location: IL, USA

Post #4by Johaen » 26.11.2006, 18:28

This problem has been discussed before, at http://shatters.net/forum/viewtopic.php?t=9622. I decided to test this again on my new PC. To attempt to speed things up, I overclocked my 4400+ to 2.38 GHz. Note that during the entire process, Celestia is using about 50% of my dual core CPU (100% of a single core).

It took about 1 hr and 35 minutes to load Celestia up with the MainBeltAsteroids.ssc in my extras folder. Celestia was using about 600 MB according to Windows Task Manager. I was getting about 1 fps, where I normally get pretty close to 60 fps. This is w/o orbits enabled. Once I turned on astroid orbits, the Celestia window turned white and not responding, as if it's loading something into memory. Celestia's memory usage slowly climbed into the range of 1.2 to 1.3 GB, where it seems to fluctuate up and down some. After about 55 minutes of this, the Celestia window finally displayed Earth again, with a orange background to it (all the orbits blending together). But when I clicked on the window to do something, it turned white again. It's now been sitting like this for about 20 minutes, and Celestia's memory usage seems to have stopped at 1,287,356 KB, not changing at all, and the Celestia window still white. I'll let it go for a little while longer, but I think it might have died :)

All stats are in the sig.
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #5by t00fri » 26.11.2006, 19:01

Indeed...

I have 3 GB of RAM and just tried loading the file with my 3.2 GHz CPU. After 14 minutes I broke off. So this really smells of "something", at least of a most ineffective loading ;-) . If I find time, I'll have a look at the code.


Bye Fridger
Image

Johaen
Posts: 341
Joined: 14.01.2006
With us: 18 years 10 months
Location: IL, USA

Post #6by Johaen » 26.11.2006, 19:37

Well, it's been 1 1/2 hrs since I last saw anything in my Celestia window, so I've given up. That's too bad. For some odd reason I seem to remember being able to enable all the orbits on my old PC, but maybe I'm thinking of something else. *shrugs*
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #7by chris » 26.11.2006, 21:28

I think that I've found the problem . . . There's some O(N^2) behavior in the loading of ssc files. That is, the time that it takes to load a new object into a solar system is proportional to the number of objects in that solar system. With a few hundred objects in a solar system, the slowdown isn't noticeable. But if you're trying to load all 233,445 asterodis in MainBeltAsteroids.ssc, well, it starts to be a problem. I'm testing a fix now.

--Chris

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 2 months

Post #8by Malenfant » 26.11.2006, 21:37

that'd be a nice one to fix, definitely :)
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #9by chris » 27.11.2006, 00:01

After my change, it takes 36 seconds to load the giant asteroid catalog. That's still a long time, but it's about two orders of magnitude faster than before, and this is after all an enormous amount of data. Once the catalog is loaded, Celestia runs at slide show frame rates. Computing the positions of all those asteroids each frame just isn't going to be fast. Some clever culling algorithm could help, but that's not a project I'm going to undertake right now. When asteroid labels are turned on, the screen is pretty much completely brown, with nearly every pixel covered by label text.

--Chris

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 2 months

Post #10by Malenfant » 27.11.2006, 00:14

Cool :). Still, if it means we can see just about every asteroid known to man then it'll be really handy for reference, just to see the orbit distributions :). If someone makes a precompiled windows version available of the CVS with this in it can you give me a yell please and I can download it?

BTW, is anyone else amazed by the fact that we know of at least 233,000 asteroids in the main belt?! Anyone have any idea how many more there could be out there? Or have we found most of them now?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #11by selden » 27.11.2006, 00:57

We can't have found all of them. I'm sure that most of them are going to be tiny and dark: too dim to see from here.
Selden

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #12by chris » 27.11.2006, 16:57

I've checked in the fix, but I still think it's madness to use this giant asteroid catalog :)

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #13by Cham » 27.11.2006, 17:56

Chris,

does that mean that the Celestia startup is faster now, for all other data files (asteroids, comets, planets and moons, stars, etc) ?

By the way, Since yesterday, I'm unable to update the CVS files on my computer. I get an error after the "Tools" folder trying to update.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #14by t00fri » 27.11.2006, 19:05

Wow...

Here you see the asteroids with the huge number of labels obscuring the sun entirely ;-) . See Sedna? (arrow)

Bye Fridger

Image
Image

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Post #15by symaski62 » 27.11.2006, 22:25

windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.


Return to “Bugs”