Hi,
I've got an application working using FSUIPC4 that moves an aircraft and sets the virtual cockpit view direction and zoom at a rate of 20 Hz, getting its data from a UAV (unmanned aerial vehicle) control station and vehicle simulator. (I'm using FSX purely for the simulated display.)
However, FSX often appears to draw a frame halfway through receiving a message, i.e. the position or view has changed but not both, (even though I send them all through a single FSUIPC4 "Process".) This causes a graphic jitter lasting a single frame.
Pete Dowson was very helpful on his forum and explained that it's because data is being transmitted via SimConnect asynchronously, even though I'm despatching it synchronously to FSUIPC4.
So, does anyone have any ideas how I could get around this? If I were to rewrite my application using SimConnect directly, are there any tricks I could employ to stall FSX acting upon new variables until all the positional and view parameters had been updated? (I've not done any SimConnect programming as of yet, so don't really know what it's capable of.)
Thanks for any advice!
Si
I've got an application working using FSUIPC4 that moves an aircraft and sets the virtual cockpit view direction and zoom at a rate of 20 Hz, getting its data from a UAV (unmanned aerial vehicle) control station and vehicle simulator. (I'm using FSX purely for the simulated display.)
However, FSX often appears to draw a frame halfway through receiving a message, i.e. the position or view has changed but not both, (even though I send them all through a single FSUIPC4 "Process".) This causes a graphic jitter lasting a single frame.
Pete Dowson was very helpful on his forum and explained that it's because data is being transmitted via SimConnect asynchronously, even though I'm despatching it synchronously to FSUIPC4.
So, does anyone have any ideas how I could get around this? If I were to rewrite my application using SimConnect directly, are there any tricks I could employ to stall FSX acting upon new variables until all the positional and view parameters had been updated? (I've not done any SimConnect programming as of yet, so don't really know what it's capable of.)
Thanks for any advice!
Si