1.75 loading status bar
Moderators: winston, another_commander
1.75 loading status bar
I'd like to suggest adding a "status bar" to the initial start up screen. I've noticed it takes the 1.75.x trunk builds longer to load than previous versions. I'm assuming it's at least partially due to the OXP checking going on. I've got about 20 OXPs I test with and sometimes I think Oolite may have "hung" during the initialization process.
Perhaps something like they used in the Sims would be cool. Printing text that told the user what was happening.
Initializing ...
Checking <OXP name> ...
Creating Witchspace sub-ether ...
Loading ship lists ...
That sort of thing.
Cheers.
Perhaps something like they used in the Sims would be cool. Printing text that told the user what was happening.
Initializing ...
Checking <OXP name> ...
Creating Witchspace sub-ether ...
Loading ship lists ...
That sort of thing.
Cheers.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Loading takes longer every time Oolite has to start clean and rebuild the cache. This happens normally on the first startup after having removed or added an OXP, whenever you start the game with Shift down, or if you have set the "always-rebuild-cache" option to YES inside .GNUstepDefaults. In reality, the OXP loading time has not been changed between the trunk and last official release versions, but it may appear so if you are comparing start up times with and without rebuild of the cache.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: 1.75 loading status bar
Which is exactly the sort of thing happening already, so I don't understand the suggestion. The status messages displayed during program start are (in exactly this order):SiriusCG wrote:Initializing ...
Checking <OXP name> ...
Creating Witchspace sub-ether ...
Loading ship lists ...
That sort of thing.
Initialising universe...
Loading ship data...
Populating space...
Running scripts...
Loading player...
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: 1.75 loading status bar
Only on the Mac version of the game (at least for now), I'm afraid...Commander McLane wrote:Which is exactly the sort of thing happening already, so I don't understand the suggestion. The status messages displayed during program start are (in exactly this order):
Initialising universe...
Loading ship data...
Populating space...
Running scripts...
Loading player...
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Not true. Trunk takes several times longer to start up. It is this way since all the check code was added. I just timed it from start to the Y/N message on my 3 MHz Mac with many oxp installed:another_commander wrote:In reality, the OXP loading time has not been changed between the trunk and last official release versions, but it may appear so if you are comparing start up times with and without rebuild of the cache.
1.74 with shift presses : 6 seconds
trunk with shift pressed: 25 seconds
trunk without shift pressed: 18 seconds.
So the main difference is not cache building. I think that is is the JS code checks that slow things down. And not only during startup but also witchspace jumps take much longer in trunk.
I also get the feeling that having a lot of active JS ship-scripts make the screen a bit stuttering sometimes. Its not happening with 1.74. But it may also be the shader code that is responsible for that. Anyhow, shooting a ships down fixes the problems sometimes.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
This may be applicable on the Mac and Linux, where theEric Walch wrote:Trunk takes several times longer to start up. It is this way since all the check code was added. I just timed it from start to the Y/N message on my 3 MHz Mac with many oxp installed:
1.74 with shift presses : 6 seconds
trunk with shift pressed: 25 seconds
trunk without shift pressed: 18 seconds.
So the main difference is not cache building. I think that is is the JS code checks that slow things down.
Last edited by another_commander on Mon Nov 01, 2010 11:01 pm, edited 1 time in total.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Its not only the JS stuff slowing startup, but also the shader compiling. When I throw out the 9 oxps with the longest worldScripts, startup is 6 to 8 seconds faster. When I throw out all griff and neolite ships, startup is about 10 seconds faster. With both sets out, total startup time is about 10 seconds for trunk. (Thats still not as fast as 1.74 with all oxps).another_commander wrote:So in theory, there should not be significant difference for them compared to 1.74.2. I have not done any benchmarks to confirm, but now that you have picked my curiosity I might as well do.
You may be right that the extensive checks only happen on mac. Because trunk is still unplayable on a mac. JS code might stop at unpredictable times by timeouts. For oxp development I can only use 1.74.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Are you sure...?Eric Walch wrote:I just timed it from start to the Y/N message on my 3 MHz Mac with many oxp installed:
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
That is still 3 times faster as my old C64....... I have lost counting since.DaddyHoggy wrote:Are you sure...?Eric Walch wrote:I just timed it from start to the Y/N message on my 3 MHz Mac with many oxp installed:
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Actually on the NTSC version of the C64 ran at the full 1MHz, I believe the PAL versions only ran at 985KHzEric Walch wrote:That is still 3 times faster as my old C64....... I have lost counting since.DaddyHoggy wrote:Are you sure...?Eric Walch wrote:I just timed it from start to the Y/N message on my 3 MHz Mac with many oxp installed:
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Yes, that did I some time ago. I did not kill it completely, but set the time limiter for debug compiles to that of release compiles. Now it rarely triggers.Micha wrote:Or just modify/disable the JS-killing routine
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Darkbee
- ---- E L I T E ----
- Posts: 335
- Joined: Mon Aug 09, 2004 8:40 pm
- Location: Space... man!
- Contact:
I have Casio Calculator watches that run faster than both of those combined!DaddyHoggy wrote:Actually on the NTSC version of the C64 ran at the full 1MHz, I believe the PAL versions only ran at 985KHzEric Walch wrote:That is still 3 times faster as my old C64....... I have lost counting since.DaddyHoggy wrote:Are you sure...?
Re: 1.75 loading status bar
Is there a chance of having it in Linux/PC versions too?another_commander wrote:Only on the Mac version of the game (at least for now), I'm afraid...Commander McLane wrote:Which is exactly the sort of thing happening already, so I don't understand the suggestion. The status messages displayed during program start are (in exactly this order):
Initialising universe...
Loading ship data...
Populating space...
Running scripts...
Loading player...