Jump to content
The simFlight Network Forums
ark1320

FSUIPC Offsets Update Frequency

Recommended Posts

Hi Pete,

In general, does FSUIPC update offset values (such as airspeed, altitude, flight control positions, radar altitude, etc) from FSX at the sim rate (about 18Hz), or only when a particular offset is accessed via one of the ipc.read commands, or perhaps only when FSUIPC detects an offset value has changed?

Thanks,

Al

Share this post


Link to post
Share on other sites
2 hours ago, ark1320 said:

In general, does FSUIPC update offset values (such as airspeed, altitude, flight control positions, radar altitude, etc) from FSX at the sim rate (about 18Hz), or only when a particular offset is accessed via one of the ipc.read commands, or perhaps only when FSUIPC detects an offset value has changed?

They are updated when SimConnect sends a new value which differs from the last one by enough to affect the offset. How often it sends them probably varies quite a bit according to which sub-system they come from.

If FS9 days (and before), FSUIPC used to grab the values from all over FS, directly from its assorted DLLs, on a "polling" basis at regular intervals -- basically at an internal sim rate or at the frame rate (depending on the values).

Since SimConnect was implemented, in FSX, it takes advantage of the SimConnect facilities.  Those supplying data for most of the types of offsets you are thinking about are only requested once on a "please supply when changed by more than x" basis. The updated values then just arrive whenever SimConnect decdes to send them.

Pete

 

 

Share this post


Link to post
Share on other sites
Quote

only requested once on a "please supply when changed by more than x" basis. The updated values then just arrive whenever SimConnect decdes to send them

Interesting Pete..is "x" defined by FSUIPC on some predefined criteria you set in the code (may be depending on retrieved data) or by SimConnect itself and what does decides mean on the SimConnect side?

 

Share this post


Link to post
Share on other sites
Just now, herve_sors said:

is "x" defined by FSUIPC on some predefined criteria you set in the code (may be depending on retrieved data)

SimConnect allows me to set 'x' individually for each data request. It cuts down on the traffic to/from SimConnect by only asking for changes which would be noticeable.  This value is per data request, so, yes, it will vary according to the data requested.

'x' is called the "epsilon" by SimConnect, and actually, by default, FSUIPC does these days default it to zero for all values. But there is an FSUIPC INI parameter which will make FSUIPC use different values for each value (with 'x' decided by my judgement about reasonable desirable precisions). Maybe it would help in those installations which have several SimConnect users clamouring for data and gradually clogging the interface up.

This option is documented in the Advanced User's guide, thus:

 

UseEpsilon is normally omitted altogether. If needed, it can be added, in the [General] section of the INI file, set to “Yes”. This will
impose change limitations on most variables sent to FSUIPC by SimConnect


Pete

 

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.