March 11, 201214 yr If it ever helps you save some debugging time .... :)(tested in FSX-Acceleration)As far as I know, there's no practicle limit on the number of gauge definitions in a panel.cfg window.Or that gauge numbers should be consecutive; just unique in a window.However, when using gaugenumbers above 101, be carefull !Try this:gauge00= ...gauge99= ...Works fine.Try this:gauge00= ....gauge102= ....Now gauge102 isn't loaded !(don't ask me how I ran into this, but it costed me two hours to find ...:) )In general, if you use gaugenumbers above 101, they need to be consecutive, without "holes" in the numbering.So:gauge00= ..................gauge100= ....gauge101= ....gauge102= ....gauge103= ...Works fine.But ingauge00= ...........gauge100= ....gauge101= ....//gauge102= .... (or leave out the line completely)gauge103= ...gauge103 isn't loaded....Have tried it in various panels, with various gaugenumbers above 101; always the same result ..On my PC, that is :)Cheers, Rob
March 12, 201214 yr However, when using gaugenumbers above 101, be carefull !Thanks for the heads-up, Rob. And, you have a big panel.Bob
March 12, 201214 yr Off Topic,Combined a lot of "small" gauges in "big" ones so i have less than 20 in the panel.cfg.Is there a difference in performance? Jan "Beatus ille qui procul negotiis..."
March 12, 201214 yr Off Topic,Combined a lot of "small" gauges in "big" ones so i have less than 20 in the panel.cfg.Is there a difference in performance?I think that's an interesting question. I would like to see a discussion of panel related performance issues - my understanding is pretty shallow in this area. Need to search for this.Bob
March 12, 201214 yr Author Off Topic,Combined a lot of "small" gauges in "big" ones so i have less than 20 in the panel.cfg.Is there a difference in performance?Hi Jan,Theoretically the performance would be better with big combined gauges because of reduced schedule overhead, but I doubt if it would be noticeable.Didn´t help in my test case anyway, I was just adding something to a panel from someone else.Best, Rob
March 14, 201214 yr Off Topic,Combined a lot of "small" gauges in "big" ones so i have less than 20 in the panel.cfg.Is there a difference in performance?Shouldn't be noticeable at all. Would be rather similar to test for a performance difference when reading a 10 records array vs a 150 records array..Few "big" gauges instead of lot of "small" gauges would have the advantage of keeping all the logic together and easy to follow and debug, BUT (there is always a BUT) a very big one might fail at one point as there is a limit in the number of elements and the stack capacity that a gauge may hold. Tom
March 14, 201214 yr So,As Johan Cruyff says:"Every advantage has its disadvantage".Not yet problems with elements and stacks and there are many. Jan "Beatus ille qui procul negotiis..."
March 14, 201214 yr Interesting,I am running into problems with my clicks filling up. It seems that it will run the code down to the last complete instruction above the limit then then ignore the rest.Also any macros in a nearly full click will crash the sim.Am thinking of using visibilty tag to get round this anyone had this problem? Paul EGLD
March 14, 201214 yr I use very big macro's, see gps, and no problems:<Macro Name="name">code</Macro><Click>@name</Click>If you crash your code must be mega! Jan "Beatus ille qui procul negotiis..."
March 14, 201214 yr I've had some problems in the past with gauges having a lot of recursive macros, especially in the Update and Mouse sections. In those cases I had to split the logic into several elements.Tom
March 14, 201214 yr Jan, It is Mega but one small macro brings it downTom, I had to split a macro (array) up also to get three of the same macro into one click. I need to get one more in but it crashes the sim so more work is needed. Paul EGLD
March 15, 201214 yr Jan, It is Mega but one small macro brings it downTom, I had to split a macro (array) up also to get three of the same macro into one click. I need to get one more in but it crashes the sim so more work is needed.Paul I guess the use of macro arrays is coming to an end :-). See:http://forum.avsim.net/topic/366226-a-module-for-handling-xml-vars-with-a-working-gauge-example/Tom
March 15, 201214 yr Tom, I saw this yesterday at FS developers and started working with it. Now that the final versions are here I will try it in the problem gauge.Thanks for your good work. Paul EGLD
Create an account or sign in to comment