This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
Each loop_... function runs your code automatically at the frequency in its name.
loop_1hzloop_15hzloop_30hzloop_60hzloop_frame
loop_frame(() => {
// Your code every frame here
});
loop_30hz(() => {
// Your code at 30hz here
});