Jump to content
Sign in to follow this  
Guest

IfVarRange...Strange Behaviour..... Conclusion

Recommended Posts

Guest

Hi allA conclusion I hope or a strange Science may beThe solution to my problem for those who tried to help, was another Bgl which when removed from the directory restored all settings appropreiate to the IfVarRange() commandIt appeared that as Arno had suggested, that in one of my Bgl's, the IfVarRange() label was the cause of the problem, see below .....................................................................Header( 1 52:47:43.194238 52:27:43.205706 -02:52:45.034604 -03:25:38.565303 )LatRange( 52:27:43.205706 52:47:43.194238 )Menu( Welshpool ) ;------------------------------------------------------------------------; TREES MACRO;------------------------------------------------------------------------ Area( 5 52:37:58.998989 -03:08:58.815438 10 ) ; Start of library call IfVarRange( :hedge1 346 3 32767) Call32( :PointColumntree ) Jump( : );------------------------------------------------------------------------ :PointColumntree;-------Tree-Line-Left-of-Entrance-----------------------;------------------------------------------------------------------------ RefPoint( rel :Columntree 1 52:37:58.013090 -03:08:58.245000 V1= 8000 V2= 1200 ) RotatedCall( :column 0 0 263 ) ; rotate object to user preset :Columntree;------------------------------------------------------------------------ RefPoint( rel :Columntree1 1 52:37:58.067995 -03:08:58.355000 V1= 8000 V2= 1200 ) RotatedCall( :pointcolumn 0 0 260 ) ; rotate object to user preset :Columntree1;------------------------------------------------------------------------ RefPoint( rel :Columntree2 1 52:37:58.143590 -03:08:58.453020 V1= 8000 V2= 1200 ) RotatedCall( :column 0 0 285 ) ; rotate object to user preset :Columntree2;------------------------------------------------------------------------ RefPoint( rel :popular 1 52:37:58.200190 -03:08:58.599590 V1= 8000 V2= 1200 ) RotatedCall( :column 0 0 260 ) ; rotate object to user preset :popular;------------------------------------------------------------------------ RefPoint( rel :popular1 1 52:37:58.260190 -03:08:58.680890 V1= 8000 V2= 1200 ) RotatedCall( :pointcolumn 0 0 250 ) ; rotate object to user preset :popular1Etc....Etc.... repretition.........................................................................It seems that the Label :hedge1 was making a Call() preventing the command from going direct to EndA (see Arno's comment, previous thread) and this Bgl is a very complex in that it only has one Area(), but several IfVarRange() checks, hence the single Call() commandThere had been a thread about lots of Area()commands, against one Area() command and this was my attempt at how easy this was to achieve---------------------------------------------------------------------What I still fail to understand, is why this failure of the IfVarRange() in a seperate Bgl, managed to affect another Bgl, never mind another seperate Area(), it was almost acting as a baseline---------------------------------------------------------------------However, Having Reinstalled FS2002 as a desperate measure, I discovered that the Bgl which was not responding to the complexity settings(not the Bgl which was causing the problem), was the cause of my Flight sim Stuttering/Freezing Temporary. A long standing mistery and proved by removing the scenery/Bgl file from the Scenery DatabaseHowever, even though I have resolved the IfVarRange, the Stuttering is still present, this could well be a seperate issue and is proberly dependant upon Pc specification, which is not a louch at 1.4Mhz Athlon, 512Gb Pc2100, Geforce 4 but becoming old....!!!Any comments you feel necessary will be interesting, but I always think a conclusion is imformative for all concernedRegardsDave

Share this post


Link to post
Share on other sites

Great to hear you have found it.I have also had that a fault in one BGL resulted in none of the BGLs of that scenery showing up, so that might explain why one BGL also influenced the others.About the performance. I see that all your trees (I guess this file contains trees :)) have a v2 of 1200. It must be really big trees to have a radius of 1200 meters, so I think a value of 10 or 20 would be more appropriate for a tree. This can have a nice effect on the performance, because that means that tree for which you are outside of the radius are not drawn when they are behind you. With this big radius some of them will still be drawn.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest

Hi ArnoThanks for the tip, I'll give it a tryA strange science I think, then.....:-hmmm Dave

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.
×
×
  • Create New...