Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread WillyB
On Sunday 30 March 2003 15:10, David Megginson wrote: David Luff writes: OK, that's it!!! - ATC did *not* break TuxRacer ;-) Are you sure? All the best, David LOL! Well .. it may not have! It could have possibly been something that I installed to enable TerraGear to be installed.

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Gerhard Wesp
One of the jobs of the ATC manager is to spread the ATC load by only updating a maximum of one ATC station each frame, and it is assumed that the manager itself will run at full simulation fidelity. Updating only once every 2 seconds would mean a noticable lag between selecting a frequency

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread David Luff
On 3/30/03 at 2:33 PM Curtis L. Olson wrote: My concern is that if the atc manager update is taking me from 60hz down to 20hz means it could be consuming on the order of 30 milleseconds per call. Simply calling it once every 2 seconds will impose a 30ms hitch in the frame rate every 2 seconds

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread David Luff
On 3/31/03 at 10:51 AM [EMAIL PROTECTED] wrote: Could the ATC manager be implemented as a low-priority thread which is woken up every so often (few seconds) to update the list of distances to the ground stations, and additionally if a frequency is changed? The realtime loop would then always have

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Arnt Karlsen
On Mon, 31 Mar 2003 01:32:57 -0700, WillyB [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]: On Sunday 30 March 2003 15:10, David Megginson wrote: David Luff writes: OK, that's it!!! - ATC did *not* break TuxRacer ;-) Are you sure? LOL! Well .. it may not have! ..fwiw, I

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Erik Hofman
Erik Hofman wrote: With the capital letter? It would be winderfull if you would use the FGSubsystem class and rename the to init() and update() Never mind. I see you are using that already. Good work. Erik ___ Flightgear-devel mailing list [EMAIL

Re: [Flightgear-devel] major frame rate drop - someone please confirm my sanity!

2003-03-31 Thread David Luff
OK, the line of code causing the frame rate hit was the following: if((fabs(xyp.y() - xyc.y()) ((runway.length/2.0) + 5.0)) (fabs(xyp.x() - xyc.x()) (runway.width/2.0))) { return(true); } return false; To simplify things, I broke it down into a few more lines: double

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread WillyB
On Monday 31 March 2003 05:29, Jim Wilson wrote: WillyB [EMAIL PROTECTED] said: On Sunday 30 March 2003 15:10, David Megginson wrote: David Luff writes: OK, that's it!!! - ATC did *not* break TuxRacer ;-) Are you sure? All the best, David LOL! Well .. it

Re: [Flightgear-devel] major frame rate drop - someone please confirm my sanity!

2003-03-31 Thread David Luff
On 3/31/03 at 2:38 PM David Luff wrote: Replacing the offending line: return((ldiff rlen) (wdiff rwidth)); with the somewhat more verbose if(ldiff rlen) { return(wdiff rwidth); } else { return(false); } cures it completely! Am I doing something really daft, or is this a

Re: [Flightgear-devel] major frame rate drop - someone please confirm my sanity!

2003-03-31 Thread Curtis L. Olson
David Luff writes: I'm doing something daft - forget this post - the above both drop the frame rate. The reason the return(false) fix fixes it is because then the function doesn't get called any more! Where's that brown paper bag when you need it?? A long time ago, when faced with things

Re: [Flightgear-devel] major frame rate drop - someone please confirm my sanity!

2003-03-31 Thread David Luff
On 3/31/03 at 4:52 PM David Luff wrote: I'm doing something daft - forget this post - the above both drop the frame rate. The reason the return(false) fix fixes it is because then the function doesn't get called any more! And here's the root cause - I was reading in the almost-one-megabyte

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Martin Spott
David Luff [EMAIL PROTECTED] wrote: On 3/30/03 at 2:33 PM Curtis L. Olson wrote: I understand that ATC is a work in progress, but something needs to be done before I go into a complete panic. :-) OK, I've committed an emergency fix - perhaps you could test again when Minnesota wakes up and

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread WillyB
On Monday 31 March 2003 09:31, Andy Ross wrote: David Luff wrote: William McRaven wrote: I downloaded the CVS last week .. tues or wed .. and installed it. The frame rate went to.. very bad. basically made flightgear unflyable.. It also made regular flightgear unflyable .. the

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Jim Wilson
WillyB [EMAIL PROTECTED] said: On Sunday 30 March 2003 15:10, David Megginson wrote: David Luff writes: OK, that's it!!! - ATC did *not* break TuxRacer ;-) Are you sure? All the best, David LOL! Well .. it may not have! It could have possibly been something that I

Re: [Flightgear-devel] major frame rate drop?

2003-03-31 Thread Erik Hofman
David Luff wrote: On 3/31/03 at 10:51 AM [EMAIL PROTECTED] wrote: Could the ATC manager be implemented as a low-priority thread which is woken up every so often (few seconds) to update the list of distances to the ground stations, and additionally if a frequency is changed? The realtime loop

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread William McRaven
Interesting I downloaded the CVS last week .. tues or wed .. and installed it. The frame rate went to.. very bad. basically made flightgear unflyable.. It also made regular flightgear unflyable .. the screen jumping every 1 or 2 seconds.. and also other 3d programs started doing the same..

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread David Megginson
Curtis L. Olson writes: Just as a random stab in the dark I commented out ... globals-get_ATC_mgr()-update(delta_time_sec); ... from the main loop and my frame rate at least doubled ... ?!? If we take the ATC manager out of globals and add it to the main subsystem manager

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread Curtis L. Olson
David Megginson writes: If we take the ATC manager out of globals and add it to the main subsystem manager (instead of updating manually), we can set it up to update, say, every 2 seconds instead of every frame. My concern is that if the atc manager update is taking me from 60hz down to 20hz

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread Michael Selig
At 3/29/03, you wrote: Curtis L. Olson writes: I returned from being gone for the week, did a cvs update to get all the latest changes and now I'm seeing about 1/3 the frame rate I'm accustom to seeing. I now am getting something in the 18-25 range which is pretty horrible for my hardware.

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread David Luff
Curtis L. Olson wrote: David Megginson writes: If we take the ATC manager out of globals and add it to the main subsystem manager (instead of updating manually), we can set it up to update, say, every 2 seconds instead of every frame. My concern is that if the atc manager update is

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread David Luff
David Megginson wrote: Curtis L. Olson writes: Just as a random stab in the dark I commented out ... globals-get_ATC_mgr()-update(delta_time_sec); ... from the main loop and my frame rate at least doubled ... ?!? If we take the ATC manager out of globals and add it to

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread David Luff
William McRaven wrote: Interesting I downloaded the CVS last week .. tues or wed .. and installed it. The frame rate went to.. very bad. basically made flightgear unflyable.. It also made regular flightgear unflyable .. the screen jumping every 1 or 2 seconds.. and also other 3d

Re: [Flightgear-devel] major frame rate drop?

2003-03-30 Thread David Megginson
David Luff writes: OK, that's it!!! - ATC did *not* break TuxRacer ;-) Are you sure? All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ ___ Flightgear-devel mailing list [EMAIL PROTECTED]

[Flightgear-devel] major frame rate drop?

2003-03-29 Thread Curtis L. Olson
I returned from being gone for the week, did a cvs update to get all the latest changes and now I'm seeing about 1/3 the frame rate I'm accustom to seeing. I now am getting something in the 18-25 range which is pretty horrible for my hardware. I've done a complete reboot to rule out my machine

Re: [Flightgear-devel] major frame rate drop?

2003-03-29 Thread Curtis L. Olson
Curtis L. Olson writes: I returned from being gone for the week, did a cvs update to get all the latest changes and now I'm seeing about 1/3 the frame rate I'm accustom to seeing. I now am getting something in the 18-25 range which is pretty horrible for my hardware. I've done a complete

RE: [Flightgear-devel] major frame rate drop?

2003-03-29 Thread Ryan Larson
PM To: [EMAIL PROTECTED] Subject: [Flightgear-devel] major frame rate drop? I returned from being gone for the week, did a cvs update to get all the latest changes and now I'm seeing about 1/3 the frame rate I'm accustom to seeing. I now am getting something in the 18-25 range which is pretty