Sign in to follow this  
Pilot53

FSX VAS Testing - Memory Leak Fix Found

Recommended Posts

After getting many OOM problems with long 777 flights I have done some vas testing with fsx and the pmdg 777 over the past week.  Before I could not complete any long hauls but now I am able to do 14 hr + flights with no issue.  Ive been monitoring fsx vas usage with fsuipc and noticed that on some flights the vas usage slowly climbs higher until the sim crashes, all while at cruise altitude.  This is with or without addon airports enabled.  This is a memory leak situation.  Other flights would complete with no issue.  After some testing It was found that If the flight was started and scenery was then activated in the library, the sim would consume vas throught the cruise.  However if this was not done and scenery changes were made before starting the flight vas usage would decrease upon reaching cruise and remain relatively constant through a 14 hour flight.  Hopefully this will help some simmers as it has helped me.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

So, if you make a change to your scenery library after loading a flight, it doesn't leak memory?? 

Share this post


Link to post
Share on other sites

If I understand your post, this issue has already been addressed and you should enable sceneries you fly to/from only, with the help of SceneryConfigurator

Share this post


Link to post
Share on other sites

So, if you make a change to your scenery library after loading a flight, it doesn't leak memory?? 

No its the opposite, make the changes before you load a flight.   Yragorn: this post has nothing to do with how many sceneries you have installed or activated, but instead has to do with enabling/disabling them before starting your flight.  However, less activated sceneries will lower your vas usage and the memory leak will take longer to crash the sim.

Share this post


Link to post
Share on other sites

 

 


No its the opposite, make the changes before you load a flight. Yragorn: this post has nothing to do with how many sceneries you have installed or activated, but instead has to do with enabling/disabling them before starting your flight. However, less activated sceneries will lower your vas usage and the memory leak will take longer to crash the sim.

 

Okay.  Uh...so, if you have some sceneries you're not even going to be close to, remove them and that, somehow helps?   What am I missing here?

Share this post


Link to post
Share on other sites

Okay.  Uh...so, if you have some sceneries you're not even going to be close to, remove them and that, somehow helps?   What am I missing here?

Well yes that does help, but the main idea of the post was that I have identified something on my system at least that was a trigger for memory leaks.  It is not an end all fix for all OOM issues but rather something that many may be unaware of that can cause a memory leak.  Somehow messing with the scenery library during flight seems to cause an oom issue for me.

Share this post


Link to post
Share on other sites

Gregg,

 

The best way is to get SceneryConfigEditor.  Set up the Group page so you  place sceneries into logical groups so its easy to find them quickly.  I have a group for FSX Base Scenery, ORBX Global, Vector & LC at the bottom of the list and I just leave them on all the time.  The airport scenery is by area (UK, Europe, USA, Canada, etc).  When I need to fly, I fire up the program turn on the airports I need and then start FSX.   Really simple to use and works very well.  I also you SimStarter to run a specific fsx.cfg for different types of flying.  Mostly I just change LOD radius from 4.5, 5.5 and 6.5.  I can normally use 5.5 for anything except the Concorde and then I use the LOD 4.5 setup.  I think with this combination you should be able to eliminate any OOM issues you are currently seeing.

Share this post


Link to post
Share on other sites

 

 


What am I missing here?

 

It still OOMs, but it just takes longer. And it doesn't matter how many sceneries you have, just keep them all active.

Share this post


Link to post
Share on other sites

I disagree with that, I have over 800 entries if that is the case (keeping them all active). I can load a flight at let's say for example, Aerosoft Thesoliniki or Helsinki and get an instant OOM error.

 

If I only activate those two sceneries with SCE before my flight I can fly between them all day.

 

I also read that photo scenery loads no matter where you are (California will load while you are in Russia for example).

Share this post


Link to post
Share on other sites

 

 


The best way is to get SceneryConfigEditor. Set up the Group page so you place sceneries into logical groups so its easy to find them quickly. I have a group for FSX Base Scenery, ORBX Global, Vector & LC at the bottom of the list and I just leave them on all the time. The airport scenery is by area (UK, Europe, USA, Canada, etc). When I need to fly, I fire up the program turn on the airports I need and then start FSX. Really simple to use and works very well. I also you SimStarter to run a specific fsx.cfg for different types of flying. Mostly I just change LOD radius from 4.5, 5.5 and 6.5. I can normally use 5.5 for anything except the Concorde and then I use the LOD 4.5 setup. I think with this combination you should be able to eliminate any OOM issues you are currently seeing.

 

Hmmm...I'll have to look into Scenery Config Editor.  I have SimStarter...just barely started using it.

 

 

 


I disagree with that, I have over 800 entries if that is the case (keeping them all active). I can load a flight at let's say for example, Aerosoft Thesoliniki or Helsinki and get an instant OOM error.



If I only activate those two sceneries with SCE before my flight I can fly between them all day.



I also read that photo scenery loads no matter where you are (California will load while you are in Russia for example).

 

Interesting stuff.

Share this post


Link to post
Share on other sites

Mmm, I never load up sceneries when in flight, I think that's asking for trouble. Everything is loaded before hand, though I do often check that ASN is engaged in the FSX Weather tab. And like other posters, every big airport I own is at the top of my scenery list and unchecked until I need it. 

Share this post


Link to post
Share on other sites

It still OOMs, but it just takes longer. And it doesn't matter how many sceneries you have, just keep them all active.

 

 

Very bad advice!  I believe that Photo scenery will be loaded no matter WHERE you are in the world on any given flight so it would behove those with photo scenery areas to disable them if not actually flying there!

 

Using process monitor I have seen scenery files being loaded that were half way around the world from where I was flying for no apparent reason!

 

Paul

Share this post


Link to post
Share on other sites

Paul,

 

It's not my advice! It's what I TRIED to translate for Gregg that mess of advice from the OP.

 

My advice is to leave everything alone!

 

We know it doesn't change load times from that other thread about 2 weeks ago. And if users want to mess around with multiple setups with scenery activated or not, then that is totally up to them.

Share this post


Link to post
Share on other sites

Always activated only the airports I'm flying to/from. Everything else gets deactivated. It's a regular practice and I do find it acceptable as I haven't had an OOM for ages now (if it ain't broken, don't fix it philosophy). As for editing the scenery library in flight, I'll agree. It tends to create more problems and weirdly increases VAS usage more than normal (tried this with Aerosoft Night Environment). I use Addit! Pro to make changes before loading up the sim.

Share this post


Link to post
Share on other sites

Does anybody use DX10? This should decrease the use of VAS also.---> SteveSceneryFixer

Or are we talking about DX9 here only

Share this post


Link to post
Share on other sites

If you use FSDT airports you don't ever need to disable those, seems like I read a post from Virtuali that the way their airports work if you overfly it it's not going to load everything into your memory anyways... 

Share this post


Link to post
Share on other sites

My advice is to leave everything alone!

Yes, you don't run sceneryconfig editor, or enable just airports you want to fly too. So how is your advice beneficial to this discussion ?

If you use FSDT airports you don't ever need to disable those, seems like I read a post from Virtuali that the way their airports work if you overfly it it's not going to load everything into your memory anyways... 

Spot on.

Share this post


Link to post
Share on other sites

I think everybody's input is helpful here.  I don't know that anyone's really found an optimal solution yet...but I'm hopeful.

Share this post


Link to post
Share on other sites

Yes, you don't run sceneryconfig editor, or enable just airports you want to fly too. So how is your advice beneficial to this discussion ?

 

Because you can't believe everything you read on the Internet. FSX runs great on Windows 3.1 and the VAS management is superb.

 

Edit: Post #14:

 

http://forum.avsim.net/topic/459932-anyway-to-force-fsx-to-give-up-some-vas/#entry3156152

Share this post


Link to post
Share on other sites

 

 


Edit: Post #14:

You take that post by Gregg to be conclusive Jim ? Not many installed. I would not test disabling addon airports or photo scenery if the current install is minimal.

Share this post


Link to post
Share on other sites

 

 


You take that post by Gregg to be conclusive Jim ?

 

No, just Gregg's, mine, and thousands of other FSX users.

 

 

 


I would not test disabling addon airports or photo scenery if the current install is minimal.

 

So how many If.....thens would you need?

 

 

Lol i don't have OOM, and don't need all those so called tweaks lol but then again I know what I'm doing ;-)

Proof is in the puddin', lol!

Share this post


Link to post
Share on other sites

Paul,

 

It's not my advice! It's what I TRIED to translate for Gregg that mess of advice from the OP.

 

My advice is to leave everything alone!

 

We know it doesn't change load times from that other thread about 2 weeks ago. And if users want to mess around with multiple setups with scenery activated or not, then that is totally up to them.

Its not a mess of advice, if you read the whole post its quite clear.  Simply put, changing the activation status of sceneries in flight creates a memory leak.

 

For example, lets say you take off and realize that you forgot to enable your destination addon airport, so you enable it in flight.  It will create a memory leak that will crash fsx if the flight is long enough.

Share this post


Link to post
Share on other sites

 

 


However, less activated sceneries will lower your vas usage and the memory leak will take longer to crash the sim.

 

What does this mean?

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