MSFS2020 SimConnect - MobiFlight/MobiFlight-Connector GitHub Wiki
Behavior during startup
After beginning the startup of the simulator, no SimConnect connection is possible. At some point A in the loading sequence, the SimConnect endpoint becomes available for clients. But at first all messages sent by an external process or a WASM standalone module are queued for a certain period (e.g 10 to 20 seconds). No messages are being processed, including SimConnect_Open
. That delay ensures that components and modules can finish initialization before general SimConnect processing starts. At some later point B in time the processing starts. At first the already queued messages are processed. During that processing also SimConnect_Open
is processed and the clients receive their SimConnect_OnRecvOpen
callbacks.
Sequence:
- 0: Startup of simulator begins
- Load packages, parse Material.xml
- A: Simconnect endpoint becomes available (but incoming messages are saved and queued)
- Initialize WASM modules and simulator components
- B: Simconnect message processing starts (and SimConnect_OnRecvOpen callbacks are sent)
- Read libraries, load gltf files and behavior XML
- Startup complete
References: