We are not asking for any events to PMDG, we send a string to FSUIPC by a hardwere device via com port and when lua script finds that string does ipc.control(eventID, parameter) and turns the heading encoder in simulator up or down. We are on sending part yet for MSFS also i ve tried to receive offsets from the sim, that works aswell when changed. But lua script somehow running so slow on fsuipc7. I am checking every step from the console while testing the code.
The script we have sent you is the actual script already, just removed unnecessary parts of it. When i run the script we've sent you, exactly same thing happens, you do not need whole code tbh. Even if i print only "Hello world" still FSUIPC7 writes it much slower than FSUIPC5 (again printing "hello world" by a trigger string sent from a hardwere device via com port. Maybe issue is about serial communication because i send that trigger strings from com port to FCUIPC.
Can't say it's PMDG cuz those happening before sending or receiving events/offsets, also as i said even print("hello world") is slower, it can't be about PMDG 🙂 I just tested print("hello world") again; sent around 40-60 trigger string around in 3 seconds to both of them, i couldnt count FSUIPC5 hello world prints but can easily count for FSUIPC7 and its just 13 times.