Dear Pete,
I'm quite an experienced system level programmer but almost new to remote controlling FSX. I successfully updated your API for current Delphi versions and use it with no problems.
My first question is regarding the way requests are processed on the server side (FSX). If e.g. I do a write request on #0BB6 (Aileron Control Input) followed by an immediate read request within the same IPC call (SendMessageTimeout(...)), will the response for the value set during the write immediately be reflected on the read? Means, will the request be processed synchronously on the server side? Or is the request being processed asynchronously, such that the result will be reflected at some later read request?
My second question is regarding timing. Doing the same reads, without any writes, within a loop, the time for processing the request (i.e. the SendMessageTimeout()) differs significantly in the range of some few milliseconds up to around 40ms (using precision timers), all measured against a more or less idling FSX and an average CPU load of less than 5%. How comes? Has it to do with FSX periodically generating frames? Based on these findings, what would be your recommended polling intervall?
Thank you for reading, kind regards
Walter
Germany