Jump to content
The simFlight Network Forums
Delphi

Slow performance FSUIPCConnection.SendControlToFS

Recommended Posts

Hello Paul,

today I played with FSUIPCConnection.SendControlToFS, latest beta of V3 from January 2016 (at least what I could find in one of the threads)

 

As I understand it is not necessary to send a FSUIPCConnection.Process after FSUIPCConnection.SendControlToFS. Works basically, but the performance is much slower than when I fill 0x3110 and 0x3114 by myself and initiate a FSUIPCConnection.Process afterwards. I did not do any exact performance benchmarks between both methods. Played just a bit around with the encoder of COM1 STBY WHOLE (65636, 65637). The subjective observation is that the COM1 STBY display is 3x slower with  FSUIPCConnection.SendControlToFS compared the 'old fashion' way. Because FSUIPCConnection.SendControlToFS would save me some lines of code, I would rather use that method then the old way. Perhaps you will find some time to look into the issue.

 

Best regards, Ruediger

Share this post


Link to post
Share on other sites

Hi Ruediger,

 

There was a deliberate delay of 200ms built into the SendControlToFS() method. I don't remember why I added it and I can't see any reason for it to be there now.

 

I've attached a new version with the delay removed. That should speed things up a bit :smile:

 

Thanks for reporting this.

 

Paul

FSUIPCClient3.0_BETA.zip

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.