Lua Script Causing Telemetry Latency

I am trying to create a script that will read CAN messages and display the messages in a user readable format on Mission Planner (these messages contain engine data, so it is flight critical). I have a script generated that will take care of this, but we are seeing issued with telemetry latency when the script is running on the autopilot, like upwards of 7 seconds or so. Because this platform is so experimental, I would really like to eliminate this down to as close to 0 as I can. Has anyone else experienced issues with latency when using lua scripts? If so, what was done to mitigate this? Attached is my script; I am not a programmer so if there are issues in the way my script is structured I am more than happy to make adjustments.
Penguin_EFI Reader_DRAFT3_NOMESSAGES.lua (17.3 KB)

How are you getting your telemetry to the ground station? I’m wondering if it’s not a lua issue, but a telemetry streaming issue. Not all telemetry is sent down at the same rate. You might need to bump up SRx_ parameters. x will be the telemetry output, (not the serial port). So if your telemetry radio is the second MavLink data source it will be SR2_ parameters. I’m not sure but it migh be SRx_EXT_STAT or SRx_EXTRA3. You might have to experement a bit. Don’t just crank them all up at once or it will overload the data stream and you won’t get anything of value.

The SR params are set as follows:
|SR1_ADSB = |5|
|SR1_EXT_STAT = |3|
|SR1_EXTRA1 = |10|
|SR1_EXTRA2 = |10|
|SR1_EXTRA3 = |2|
|SR1_PARAMS = |10|
|SR1_POSITION = |5|
|SR1_RAW_CTRL = |1|
|SR1_RAW_SENS = |2|
|SR1_RC_CHAN = |2|

EXTRA1 being attitude and EXTRA2 being VFR HUD, both of which are maxed out at 10, and I am still seeing a 3 second delay in HUD changes when i move the aircraft. I am using uAvionix radios as my means to get data from the aircraft to the ground station.

I think you need to look at the radio system because even with lower EXTRA1 and EXTRA2 settings you should have much better HUD performance.

Post your parameter file and maybe somebody can see a problem.

so here are my most up to date parameters, could anyone provide insight as to what might be going wrong here?
updatedParams_08-15-25.param (24.9 KB)