Jump to content

Sign in to follow this  
dukeav

Traffic Optimizer for FSX/P3D

Recommended Posts

AI traffic can be a FPS killer at even moderate settings. Many of us like to decent amount of traffic around, but this finally becomes a tussle between volume and FPS.

 

To help this situation I have written a program which automatically tries to manage the traffic. The logic is pretty simple, you give the program a target number of AI aircraft, by default 100. Every 60 seconds the program will check how many AI Aircraft are there and then it will delete AI Aircraft above this number. Aircraft farthest from your aircraft are deleted first, so traffic around you should remain largely unchanged. 

 

You can change the target number to your choice based upon your hardware.

 

Traffic Settings within FSX:

You should set the the traffic density in P3D to something which gives you decent traffic around you. For example I use MyTraffic, so I set the density to 35%, which I think reflects RW traffic. In my situation my FPS goes from ~12 to ~18 with this program in KJFK.

 

How to use:


Start FSX, let it come up fully

Start AirTrafficManager.exe

Enter the Departure and Dsetination ICAO codes (optional)

"Check" the "Auto Optimize" check-box

 

The first clean-up will happen 15 seconds after you check the check-box, and after 10-15 seconds of that you will notice your FPS increase.

 

I have not programmed in VB.Net for ages, so if you are going to try this out then you are a beta-tester :)

 

Notes:

1. This program runs separately from FSX so hopefully will not crash it.

2. If you get a message in the console saying unable to connect to FSX, please re-start AirTrafficManager.

3. Although the check for AI Aircraft is done every 60 seconds, the clean-up happens 15 seconds after the 60 seconds

4. The original program was for P3D, you can find the discussion thread here - http://forum.avsim.net/topic/451048-traffic-optimizer-for-p3d/

5. FSX version is not tested much as I mainly use P3D, and I created this version on request from FSX users

 

Requirements:

1. FSX SP2 / Acceleration

2. FSUIPC

 

Acknowledgements:

1. Uses the FSUIPC Client DLL for .NET by Paul Henty

2. Pete Dowson for pointing out the critical bug for SP2, Sesquashtoo / Ray Proudfoot and many other for testing and feedback in the P3D thread

  • Upvote 1

Share this post


Link to post
Share on other sites

Many thanks !

  • Upvote 1

Gerard

7940x ( 14 cores ) : 8 cores @ 4.8 - 6 cores @ 4.0 Ghz - Gigabyte X299 Gaming 7 - 32 Gb G.Skill Trident Z 3200Mhz Cl 14 - Gigabyte GTX 2080 TI Windforce OC @1920 Mhz - 1x SSD M2 1800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 43” Sony 4K tv's in NVSurround

8700K : all 6 cores @ 5.0 GHz - Asus ROG 370 - 16 Gb 4000 MHz @ 3600 Mhz - Gigabyte GTX 2080 Windforce OC @ 1900 Mhz - 1x SSD M2 1800/1800 2TB - 2x  Sata 600 SSD 500 Mb - 1x 55” Sony 4K tv

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post
Share on other sites

Duke,

 

I haven't tried this version yet but have a couple of observations...

 

1) Can you provide a minimise button so the program can be moved off the desktop?

 

2) Some programs can detect if a flight plan is loaded in FSX and will then automatically load it into their interface. Active Sky Next is one. Rather than ask the user to provide 2 ICAOs maybe you could look at loading a plan even though you only use part of it.

 

Thanks!


Ray (Cheshire, England).
System: P3D v4.5, Intel i7-8086K o/c to 4.6Ghz, Nvidia GTX 1080 Ti 11Gb, Samsung 970 EVO M.2 SSD, 1Tb Samsung 860 EVO SSD, Asus Prime Z370-A mobo, 32Gb G.Skill DDR4 3000Mhz RAM, Win 10 Pro 64-bit, BenQ PD3200U 32” UHD monitor.
Cheadle Hulme Weather

Share this post


Link to post
Share on other sites

Tried it. Liked it. Thanks. And I agree with Ray, a minimize button would be nice.

 

Doug


Klaatu barada nickto

Share this post


Link to post
Share on other sites

 

 


1) Can you provide a minimise button so the program can be moved off the desktop?

 

Ray and Doug right click on top and minimize...


Maurice J

I7 7700k 4.7 \ EVGA 1080ti \ G-Skill 32GB \ Samsung 4K TV

Share this post


Link to post
Share on other sites

Thanks Duke. And thanks to reecemj, never thought of that :)


System: MSFS2020-Premium Deluxe, P3D 5.0, ASUS Maximus XI Hero,  Intel i7-8086K o/c to 5.0GHz, Corsair AIO H115i Pro, Corsair Spec Omega Case,Nvidia GTX 1080 Ti 11Gb, Samsung 970 EVO M.2 SSD, 1Tb Samsung 860 EVO SSD, 32Gb Corsair Vengeance DDR4 3200Mhz RAM, EVGA 850+ Gold PSU,Win 10 Pro 64-bit, LG 43UD79 43" 4K IPS Panel., Logitech X56 Hotas Stick and Throttle, Logitech/Saitek Flight Yoke System, Multi, Radio, Switch Panels

 

Share this post


Link to post
Share on other sites

Great program and it works fine with AIController and ProATC.


ProATC X (PATCX)  Official Beta Tester (Over 1000 flights recorded on my YT channel all using ProATC X), MSFS Alpha Tester

Mike Collins

AMD Ryzen 7 3700X 4.2 32 gig ram, NVidia 1060 6 gig, Intel 760 SSD M2 NVMe 512 gig, Crucial MX500 SSD

You Tube:- https://www.youtube.com/channel/UC96wsF3D_h5GzNNJnuDH3WQ

Reality Is For People Who Can't Handle Simulation!

Share this post


Link to post
Share on other sites

Ray and Doug right click on top and minimize...

 

Sheez.....so simple. Never would have thought of that.....Thanks.....

 

Doug


Klaatu barada nickto

Share this post


Link to post
Share on other sites

This is a seriously good program - just flew very close to Heathrow en route from EGSS to EGJJ with the traffic set to 50 and got hardly any drop in FPS !

 

Couple this with Fibre Accelerator and no longer is London airspace the frame hog nightmare that it used to be !

 

My only comment would be a feature to save the settings to individual files for future use?

 

Many thanks

 

Gary

Share this post


Link to post
Share on other sites

 

AI traffic can be a FPS killer at even moderate settings. Many of us like to decent amount of traffic around, but this finally becomes a tussle between volume and FPS.
 
To help this situation I have written a program which automatically tries to manage the traffic. The logic is pretty simple, you give the program a target number of AI aircraft, by default 100. Every 60 seconds the program will check how many AI Aircraft are there and then it will delete AI Aircraft above this number. Aircraft farthest from your aircraft are deleted first, so traffic around you should remain largely unchanged. 
 
You can change the target number to your choice based upon your hardware.
 
Traffic Settings within FSX:
You should set the the traffic density in P3D to something which gives you decent traffic around you. For example I use MyTraffic, so I set the density to 35%, which I think reflects RW traffic. In my situation my FPS goes from ~12 to ~18 with this program in KJFK.
 
How to use:
Start FSX, let it come up fully
Start AirTrafficManager.exe
Enter the Departure and Dsetination ICAO codes (optional)
"Check" the "Auto Optimize" check-box
 
The first clean-up will happen 15 seconds after you check the check-box, and after 10-15 seconds of that you will notice your FPS increase.
 
I have not programmed in VB.Net for ages, so if you are going to try this out then you are a beta-tester :)
 
Notes:
1. This program runs separately from FSX so hopefully will not crash it.
2. If you get a message in the console saying unable to connect to FSX, please re-start AirTrafficManager.
3. Although the check for AI Aircraft is done every 60 seconds, the clean-up happens 15 seconds after the 60 seconds
4. The original program was for P3D, you can find the discussion thread here - http://forum.avsim.net/topic/451048-traffic-optimizer-for-p3d/
5. FSX version is not tested much as I mainly use P3D, and I created this version on request from FSX users
 
Requirements:
1. FSX SP2 / Acceleration
2. FSUIPC
 
Acknowledgements:
1. Uses the FSUIPC Client DLL for .NET by Paul Henty
2. Pete Dowson for pointing out the critical bug for SP2, Sesquashtoo / Ray Proudfoot and many other for testing and feedback in the P3D thread

 

 

Nice one useful,  but in case of UT2 not needed because the program does this already since the first release version ;-)


 

André
 

Share this post


Link to post
Share on other sites

Nice one useful,  but in case of UT2 not needed because the program does this already since the first release version ;-)

It does? I have used UT2 for years and never once seen AI be removed or added based on FSP.

 

Where are the settings in UT2 to set this up?

 

Is this in the UT2 documentation?

 

Yes, I monitor my AI traffic with Traffic Watch.

Share this post


Link to post
Share on other sites

It does? I have used UT2 for years and never once seen AI be removed or added based on FSP.

 

Where are the settings in UT2 to set this up?

 

Is this in the UT2 documentation?

 

Yes, I monitor my AI traffic with Traffic Watch.

 

Lol UT2 gui and then Utilities > In game settings, but my guess is you already new that Jim ;-)

Those settings are very useful for great performance and AI I don't fly without it....

 

There is even an option called target FPS....

 

From the manual ;-)

 

1.  Keyboard Shortcuts - All controls for Ultimate Traffic 2 inside of FSX can have keyboard shortcuts assigned to them.  To assign a new keyboard shortcut, highlight the desired field to change and press the key combination you would like to designate.  UT2 does NOT check to see if this is conflicting with any existing FSX shortcuts.

2.  Target FSX Frame Rate - If you computer is running slow at very busy airports, due to the amount of ai traffic being displayed, you can use this setting to allow UT2 to automatically adjust your traffic density to reach your performance goal.  Ultimate Traffic 2 will dynamically reduce the traffic density until it is able to achieve the desired frame rate.  When your frame rate in FSX goes above the target rate, UT2 will increase the traffic density, up to the max setting on the Traffic Options page, as long as it stays above the target frame rate.  The minimum setting available is 6 FPS.  Setting below this value will turn OFF the target frame rate option.

3.  Aircraft Spawn Options - In order to be able to control the injection of ai traffic specifically for your computer, you can use the spawn options.  You can set the max altitude that aircraft on the ground will be displayed, distance from your aircraft that ai traffic will be spawned on the ground, and the maximum number of aircraft to display, using these settings.  These settings can be useful in eliminating or reducing any 'pops' or 'pauses' that may occur in FSX while UT2 spawns aircraft.


 

André
 

Share this post


Link to post
Share on other sites

Duke,

 

Thanks for the tip about minimising. Having had some time to think about this program I'm wondering what the purpose of supplying the two ICAOs is.

 

Does it affect which Ai get deleted? That would be my guess. For example, if I set-up a flight from Heathrow to JFK then all those Ai well to the east of London would be the first to go since they will never be close to my route.

 

But those out to the west - even 100 miles away I might feel inclined to keep. After all, I'm sure most would agree you don't want to sanitise the route you're flying. And each few minutes when you check and remove those in excess of the user's target would you also prioritise those behind your aircraft rather than ahead?

 

Just a thought which I think would enhance your already excellent program.


Ray (Cheshire, England).
System: P3D v4.5, Intel i7-8086K o/c to 4.6Ghz, Nvidia GTX 1080 Ti 11Gb, Samsung 970 EVO M.2 SSD, 1Tb Samsung 860 EVO SSD, Asus Prime Z370-A mobo, 32Gb G.Skill DDR4 3000Mhz RAM, Win 10 Pro 64-bit, BenQ PD3200U 32” UHD monitor.
Cheadle Hulme Weather

Share this post


Link to post
Share on other sites

Lol UT2 gui and then Utilities > In game settings, but my guess is you already new that Jim ;-)

Those settings are very useful for great performance and AI I don't fly without it....

 

There is even an option called target FPS....

 

From the manual ;-)

 

1.  Keyboard Shortcuts - All controls for Ultimate Traffic 2 inside of FSX can have keyboard shortcuts assigned to them.  To assign a new keyboard shortcut, highlight the desired field to change and press the key combination you would like to designate.  UT2 does NOT check to see if this is conflicting with any existing FSX shortcuts.

2.  Target FSX Frame Rate - If you computer is running slow at very busy airports, due to the amount of ai traffic being displayed, you can use this setting to allow UT2 to automatically adjust your traffic density to reach your performance goal.  Ultimate Traffic 2 will dynamically reduce the traffic density until it is able to achieve the desired frame rate.  When your frame rate in FSX goes above the target rate, UT2 will increase the traffic density, up to the max setting on the Traffic Options page, as long as it stays above the target frame rate.  The minimum setting available is 6 FPS.  Setting below this value will turn OFF the target frame rate option.

3.  Aircraft Spawn Options - In order to be able to control the injection of ai traffic specifically for your computer, you can use the spawn options.  You can set the max altitude that aircraft on the ground will be displayed, distance from your aircraft that ai traffic will be spawned on the ground, and the maximum number of aircraft to display, using these settings.  These settings can be useful in eliminating or reducing any 'pops' or 'pauses' that may occur in FSX while UT2 spawns aircraft.

Andre,

 

No I truly didn't know! I will take a look.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    22%
    $5,540.00 of $25,000.00 Donate Now
×
×
  • Create New...