• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

What Exactly Does 'Update Frequency=...." Mean?

Messages
10,158
Country
us-arizona
Hey guys,

Just curious. (Another question from the Kindergardner...)

* What exactly does < Update Frequency="6"/ > mean?

* Can I control the gauges 'smoothness' of animation?

* Will this also effect frame rates in the grand scheme of things?

* Should I have this at the front of the gauge (top) instead of in sections?


Many thanks,

Bill
LHC
 
Hi Bill,

maybe I can help you with this. When you are programming in C, you have to set a parameter for the refresh rate of the makros.

MAX_DEG_PER_SEC
Determines the refresh rate for the macro. Gauges are refreshed 18 times per second, so a value of 0 means update every cycle; a value of 6 means update every third of a second. You trade off gauge display quality versus frame rate—lower numbers give smoother display but worse frame rate.

I guess that your update frequency means the same. If this guess is right:

* yes, this variable have an effect on the smoothness of the gauges.

* yes, by increasing the frequency, it will have an impact on the performance of your cockpit.

* Another guess is, that if you don't type it on top of your gauge, the FS will take its default param, which, I assume, will be 18 1/s.


But maybe I am totally wrong.

regards
Vitus
 
Thanks for the heads up Vitus.

I'll have to play around and experiment with that and see what all it can do.

So much to learn.



Bill
 
Bill,

<Update></Update> is a pure scripting area within a gauge.
<Update> supports some additional commands like Frequency and Hidden.

Frequency="n" tells the gauge to process its elements at a given amount of cycles/sec. The default freq, as stated above, is 18 times/seq. Now, Update="1" is a one time/seq, 3 is 2 t/s, 6 is 3 times/sec, etc until 9 is same as default. Notice that <Update> scripting area is always processed at 18 times/sec, despite Frequency="n" being present or not.

Hidden="Yes/No" , tells the gauge not to process its elements when it is not visible -ie panel container is oculted.

Tom
 
Hidden="Yes/No" , tells the gauge not to process its elements when it is not visible -ie panel container is oculted.

Tom

Ahhhhh....!

This is very good news then! That small key will keep my PFD mini map window from taking resources with it being off when hidden.

:D

Thank you Sir! Thanks for the excellent info on that subject.



Bill
LHC
 
Back
Top