Sign in to follow this  

Limited event posting with Simconnect

Recommended Posts



I'm experiencing some lag when sending a lot of events using Simconnect to connect to PMDG 737NGX:

The PMDG_NGX_Control structure is used to send the actual event:
struct PMDG_NGX_Control {
    unsigned int Event;
    unsigned int Parameter;

I'm calling the SimConnect_SetClientData function to set this structure with the appropriate event and paramenter.
Once I receive SIMCONNECT_RECV_ID_CLIENT_DATA for the NGX structure, I check if Event variable has returned to 0. If it has, I will send the next event (if any).

This seems to work okay, the problem is that is quite slow. I get the feeling that it is tied to the frame rate of the sim.
We have it hooked up to a hardware rotary encoder, which can generate quite a lot of events. You will see a definite lag in the sim as it is trying to catch up.

Please let me know if my way of doing this is wrong. Hopefully there is a quicker way to send events.


Any help is appreciated,


Share this post

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

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