|
From: Nick W. <ni...@li...> - 2007-01-06 13:24:17
|
On Saturday 06 January 2007 08:54, Durk Talsma wrote: > On Saturday 06 January 2007 01:27, Maik Justus wrote: > > Hi Nick, > > > > I think the AI-Objects (multiplayer Aircrafts are such things) in the > > ground-cache cause this behavior. > > @Mathias: I know, that you are working on optimizing the ground-cache > > for such things. Is it much effort, to disable the AI-Aircrafts in the > > groundcache up to that? > > > > Best regards, > > Maik > > I doubt wether that's really causing the problem. The AI part of the AI > models code regularly spawns new AI models on top of each other at those > airports for which we don't have a ground network yet. In current CVS > (HEAD) there is an example of this at Frankfurt am Main airport (EDDF). > Please have a look at EDDF with AIModels / traffic manager activated and > see if you have similar problems. > > There's a possibility that some of the latest changes in the FlightGear > code are causing this, but I can't check right now, as I'm recompiling the > whole source tree to get the latest simgear changes in. > > Again, there's also a possibility that Multiplayer AIModel aircraft are > treated differently than AI AIModel aircraft, but I'm not familiar enough > with the multiplayer code to know that for sure. > OK, this happens in local game also. I set a basic test and turned on AI traffic. I flew near one of the bots in the air - below is output from log-level=debug... and the last line is where it 'freezes' for 30/40 secs at a time - then processes and that loops and then 'freezes' again until next interation. I don't like the look of 'ground_radius = 6.37021e+06' Nick Running Main Loop ======= ==== ==== Updating time Current Unix calendar time = 1168114278 warp = 24780 Current GMT = 1/6/2007 20:11:18 Current Unix calendar time = 1168114278 warp = 24780 Current GMT = 1/6/2007 20:11:18 Current Julian Date = 2.45411e+06 COURSE: GMT = 0/6/107 20:11:18 March 21 noon (GMT) = 1174478400 Time since 3/21/107 GMT = -73.6588 days = -73 hours = 20.1883 lon = 0 lst = 3.32167 COURSE: GMT = 0/6/107 20:11:18 March 21 noon (GMT) = 1174478400 Time since 3/21/107 GMT = -73.6588 days = -73 hours = 20.1883 lon = 122.378 lst = 19.1631 Current lon=0.00 Sidereal Time = 3.23748 gst => 195.257 Current LOCAL Sidereal Time = 19.079 (19.0982) (diff = -0.0841852) Elapsed time interval is = 9876899, previous remainder is = 2200 --> Frame rate is = 1 Model iterations needed = 1185, new remainder = 4099 prepare_ground_cache(): ac radius = 243.761, # triangles = 10572, # wires = 0, # catapults = 0, ground_radius = 6.37021e+06 |