Hi Tom,

He, he, just for ***FUN*** I tried with 4000 
objects...

See the 'crowded' runway on startup -
 http://geoffair.org/tmp/fgfs-screen-001.png 
but more spectacular from the air -
 http://geoffair.org/tmp/fgfs-screen-002.png 

and had no problems loading ;=))

But you seem to have missed the png texture file 
from your zip, and maybe that would make a difference?

Console output - several times -
osgDB ac3d reader: could not find texture "CocoPalmSeedling.png"

Did not check the cpu usage, and the total load time 
was well under a minute... about 30 seconds...

If you add that png, I would give it a try with 5000, 
but the problems does seem to be in your machine at the 
moment ;=((

HTH.

Regards,
Geoff.

System Information:
- SG/FG/FGDATA - Git of 2011/09/14 12:30:29
- OSG 3.0.1, PLIB 1.8.5, boost 1.40.00
- Ubuntu 10.04 (lucid) linux - 2.6.32-33-generic
- Video: ATI Technologies Inc RV630 [Radeon HD 2600XT]
- ATI/AMD proprietary fglrx driver - $ modinfo fglrx
  srcversion: 33640324E1E3A5E6A7234AC
- CPU: Intel Core 2 Quad Q6600 2.40 GHz
- RAM: 2 GB
- Box: Dell XPS 420 - Dell monitor at 1440x900, 60 Hz

Scripts used - after failing to load the new stg the first 
time, I rename the 1907463.stg in my Scenery-1.0.1, and 
copied in 1907463.stg.4000, plus the *.ac file... then
ran -

#!/bin/sh
#< run_test.sh
#SCENERY="--fg-scenery=/home/downloads/temp:/home/geoff/Scenery-1.0.1"
SCENERY="--fg-scenery=/home/geoff/Scenery-1.0.1"
OPTS="--prop:/sim/frame-rate-throttle-hz=30 --disable-random-objects
--geometry=1920x1190+0+0"
OPTS="$OPTS --atlas=socket,out,1,localhost,5500,udp --season=summer
$SCENERY"
OPTS="$OPTS --aircraft=c172p --airport=TNCM --log-level=alert"
OPTS="$OPTS --prop:/sim/rendering/multi-sample-buffers=true
--prop:/sim/rendering/multi-samples=2"
OPTS="$OPTS --prop:/sim/ai-traffic/enabled=false
--prop:/sim/traffic-manager/enabled=false --prop:/sim/atc/enabled=false"
OPTS="$OPTS --timeofday=dawn --enable-real-weather-fetch
--control=joystick --disable-auto-coordination"
./run_fgfs.sh $OPTS

which runs -
#!/bin/sh
#< run_fgfs.sh version=1.3.4, 2011-09-12 - run from anywhere
BN=`basename $0`
cd /home/geoff/fg/fg16
HERE=$PWD
cd install/fgfs/bin
export LD_LIBRARY_PATH=/home/geoff/fg/fg16/install/OSG301/lib
echo "$BN: Running: ./fgfs --fg-root=/home/geoff/fg/fg16/fgfs/data $@"
./fgfs --fg-root=/home/geoff/fg/fg16/fgfs/data $@


On Tue, 2011-09-20 at 23:00 +0200, Thomas Albrecht wrote:
> Hey group,
> 
> I've come across a problem with FG when many (static) objects are to be 
> loaded 
> on FG startup.
> 
> Usually, on my (faily old) PC FG loads for about 20 seconds, then 
> says "loading scenery" for about 6 seconds, and places me in the c172 ready 
> for takeoff. During all this CPU load is at 100%.
> 
> Now if I start FG with scenery that contains many (> 1000) objects, I get the 
> following:
> - FG still loads for about 20 sec, then says "loading scenery"
> - about 3 seconds later, CPU load drops to ~20% and stays there
> - and FG never finishes startup
> --log-level=debug shows the main loop is running, I can use the menu, but I 
> never end up in the c172, nor see anything else but the splash screen
> 
> Starting at a nearby airport and flying into said scenery works. I can also 
> teleport to this nearby airport while FG 'hangs', and then fly into said 
> scenery flawlessly.
> 
> I've created a test scenery [1] which uses TNCM terrain and 5000 instances of 
> one object, furthermore, a script which lets me reduce the number of objects 
> in the .stg. If I use 3100 objects, everything is fine. 3200 objects, and FG 
> hangs. 100% repeatable, though I did not narrow down the threshold number 
> further.
> 
> However, the threshold number seems to depend on 
> - the object(s) loaded
> - CPU load: If I have another process running (mplayer, for example) which 
> consumes some CPU, FG now also hangs for the 3100 objects case (which would 
> otherwise load fine if there was no other demanding process).
> 
> It appears as if FG somewhat locks up if the initial scenery is not loaded 
> within a certain wall clock time.
> 
> Any ideas?
> 
> Cheers,
> Tom
> 
> - Git from 5 Sep 2011
> - Gentoo Linux
> - GeForce 7600 GS (running ancient nvidia drivers 180.29)
> 
> fgfs --prop:/sim/frame-rate-throttle-hz=30 --disable-random-objects 
> --geometry=1920x1190+0+0 --atlas=socket,out,1,localhost,5500,udp 
> --fg-root=/home/tom/daten/fgfs/src/fgdata --season=summer 
> --fg-scenery=/home/tom/fgfs/home/Scenery-Manual:/home/tom/fgfs/home/Scenery-TerraSync:/home/tom/daten/fgfs/src/fgdata/Scenery:/home/tom/fgfs/home/Scenery-1.0.1
>  --aircraft=c172p --airport=TNCM --log-level=alert 
> --prop:/sim/rendering/multi-sample-buffers=true 
> --prop:/sim/rendering/multi-samples=2 --prop:/sim/ai-traffic/enabled=false 
> --prop:/sim/traffic-manager/enabled=false --prop:/sim/atc/enabled=false 
> --timeofday=dawn --enable-real-weather-fetch --control=joystick 
> --disable-auto-coordination
> 
> [1] http://www.mediafire.com/?n9uftx7vil98btz
> 



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to