JB3DG
Resource contributor
- Messages
- 1,325
- Country

So i made a intruiging discovery this morning while working on a custom gear retraction sequence using Simconnect.
In order to get the timing right I was working off the PANEL_SERVICE_PRE_UPDATE case in my gauge callback function which executed my gear position function at 18Hz. However I was getting a vibration on the gear caused by the sim trying to move the gear on its own instead of letting simconnect handle it. However when i switched to using the TICK18 module var for timing and put the gear position function in the PANEL_SERVICE_PRE_DRAW case, the vibration went away. It seems that the PRE_DRAW case is kept in sync with the frame rate and is executed along with the frame buffer swap of DirectX, effectively wiping out any interference from the sim. So combining simconnect and gauges can be handy.
In order to get the timing right I was working off the PANEL_SERVICE_PRE_UPDATE case in my gauge callback function which executed my gear position function at 18Hz. However I was getting a vibration on the gear caused by the sim trying to move the gear on its own instead of letting simconnect handle it. However when i switched to using the TICK18 module var for timing and put the gear position function in the PANEL_SERVICE_PRE_DRAW case, the vibration went away. It seems that the PRE_DRAW case is kept in sync with the frame rate and is executed along with the frame buffer swap of DirectX, effectively wiping out any interference from the sim. So combining simconnect and gauges can be handy.

