1.3.2 Pre 10 - CPU Usage

Report bugs, bug fixes and workarounds here.
Topic author
rconn2
Posts: 12
Joined: 10.07.2004
With us: 20 years 4 months
Location: MD, USA

1.3.2 Pre 10 - CPU Usage

Post #1by rconn2 » 20.07.2004, 03:35

1. Using the default earth surface, and all rendering options off except planets, and Time static (i.e. frozen or by pressing 'K'). Home in on earth (i.e. Egypt) while watching CPU usage in Task Manager. Around 8,000 km, CPU usage jumps from around 20 to the upper 90's. Move in closer, to around 6,000 km distance, and CPU usage drops back to around 20.

-- Repeat the above using Alt surfaces such as Blue Marble. Same effect.
-- Repeat the above using different Ctrl-V settings, similar effect (not sure but where the jump occurs may differ).

2. With Time static, change rendering options to Nightside and cpu usage jumps to the 90's from the 20's or 30's. Turn off Nightside, and change to Clouds, and the same effect. Move closer or further away from earth and cpu usage stays very high with Nightside or Clouds.

-- When Time is static, the image in Celestia is constant, and no calculations need to be performed. Yet there is no change in cpu usage whether static or time is moving etc. So, just having Nightside or Clouds on, cpu usage stays in the upper 90's, turning on the system fan etc. there's no way to let Celestia idle without closing it down.

[BTW Chris -- Thanks for your great program and generous efforts.]
Dell Inspiron 8600, 1.7GHz Pentium M, 1GB RAM, NVidia GeForce FX Go5650 128MB, Windows XP Pro SP 1a

maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #2by maxim » 20.07.2004, 06:53

The display is still updated every 1/40 second (or so). That's what causes the CPU load - calculations have a quite minor effect on it.

BTW - my poor computers CPU load is always at 100%.

maxim

Topic author
rconn2
Posts: 12
Joined: 10.07.2004
With us: 20 years 4 months
Location: MD, USA

Post #3by rconn2 » 21.07.2004, 02:31

maxim: Thanks. It'd be much better if the updates could be stopped when time is frozen, so you could just idle Celestia. For example, often I'll stop time and just zoom in, stop, zoom in to study a texture. And, I'll often want to switch to something else for a while.

I'm a relatively new user -- a few weeks now. A great program, but this is a real negative I hope is addressed. I've found myself constantly exiting Celestia after a few minutes because of the constant cpu usage. If I could just spacebar or K to stop, then I wouldn't feel that need. And, I wouldn't want to leave it up and go out for a while -- running the cpu so hot. So, BIG ISSUE I think.

Otherwise, my point #2 still seems an anomoly -- where cpu usage jumps at a certain distance (~8km or so) from earth. It's low, low, med hi, hi, hi, low, low ... just jumps in that distance window.

-- rc
Dell Inspiron 8600, 1.7GHz Pentium M, 1GB RAM, NVidia GeForce FX Go5650 128MB, Windows XP Pro SP 1a

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

Post #4by selden » 21.07.2004, 03:12

rc,

If Celestia can complete all of its calculations and refresh the screen in less time than your screen's refresh rate, then its CPU usage falls off. If Celestia takes longer than your setting for the system's screen refresh rate, then it'll use all of the CPU trying to refresh the screen as fast as it can. It's a very abrupt step-function.

I agree that it'd be nice if Celestia would stop refreshing the screen when it's supposed to be paused.

Celestia does completely stop while one of its drop-down menus is open and you haven't yet selected a menu item. Of course, that also prevents your system's screen-saver from running,
so you have to worry about long-term screen burn-in.
Selden

Topic author
rconn2
Posts: 12
Joined: 10.07.2004
With us: 20 years 4 months
Location: MD, USA

Post #5by rconn2 » 21.07.2004, 05:05

Selden: Thx. I see bringing up a menu does stop cpu usage... at least a quick trick (but then you can't zoom in etc.).

I just noticed something else though: When you minimize Celestia, cpu usage shoots up to 99%. Just start it up using the default "normal" earth texture... in task manager, I get around 25% cpu. Then minimize, and the cpu gets maxed-out. Ok... just tried with Sol (and everything off except planets) and Pluto... minimize and maxed out cpu!

I'm not being complaining critical (am a developer myself), just pointing out what I believe is a serious flaw -- screen refreshes and high cpu usage shouldn't occur either when time is stopped nor when the program is minimized.

I know I've minimized over the past weeks -- surfing the web, playing w/ cygwin... and had Celestia minimized and noticed my system being sluggish... but figured it was all the stuff I was installing etc. Now I know. I hope this gets addressed; it makes one only want to use only for brief periods when you don't want to do anything else (which is rare).

-- rc
Dell Inspiron 8600, 1.7GHz Pentium M, 1GB RAM, NVidia GeForce FX Go5650 128MB, Windows XP Pro SP 1a

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

Post #6by chris » 21.07.2004, 05:57

I checked a fix into CVS which keeps Celestia from using all available CPU time when it's minimized. Detecting a paused state is more complicated. Just because time is paused doesn't mean that the camera isn't moving. And, with multiview, there's more than one camera to check. It's not really that difficult to determine if the scene needs to be rerendered, but I'm reluctant to add the code to do it so close to 1.3.2.

--Chris

Topic author
rconn2
Posts: 12
Joined: 10.07.2004
With us: 20 years 4 months
Location: MD, USA

Post #7by rconn2 » 22.07.2004, 03:10

Chris: Thanks, that sounds great! I understand about the rendering changes and not wanting to impact the impending release of 1.3.2... will look forward to this in another release.

BTW, I've seen a lot of shareware and open source... and Celestia is among the best software, including commercial, I've encountered. I just did a google some weeks ago for astronomy sw, and was happily surprised to come across your gem.
Dell Inspiron 8600, 1.7GHz Pentium M, 1GB RAM, NVidia GeForce FX Go5650 128MB, Windows XP Pro SP 1a

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

Post #8by selden » 22.07.2004, 03:41

fwiw, I just finished downloading a fresh copy of all of the Celestia source code and compiled it on a WinXP Pro SP1 system using MS Visual Studio .NET 2003, and the new "don't compute while minimized" code seems to be working fine!
Selden

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

Post #9by symaski62 » 22.07.2004, 17:38

8) win XP sp1


d?marrer => windows update (entr)

/symaski62 :D
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.

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #10by don » 23.07.2004, 05:38

Chris,

Works great!

My 3.06 GHz CPU, 4" ducted fan, my sensitive ears, and my sanity ALL say THANK YOU! :D
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.


Return to “Bugs”