I cannot get the Javascript setInterval() function to work within a MSFS update section for an HTML gauge. No matter what interval I use (here 2 sec), the TEMP_TEST variable below increments at the same (very fast) rate.
Is there some limitation in using setInterval() within a MSFS update section, for example, maybe something to do with the update section rate vs the setInterval repeat rate (maybe the setInterval rate has to be faster then the Update section rate)?
Thx,
Al
Is there some limitation in using setInterval() within a MSFS update section, for example, maybe something to do with the update section rate vs the setInterval repeat rate (maybe the setInterval rate has to be faster then the Update section rate)?
Thx,
Al
Code:
setInterval(()=> {this.TEMP_TEST++}, 2000);
SimVar.SetSimVarValue("L:TEMP_TEST_VAL", "NUMBER", this.TEMP_TEST); //This line just for display purposes in DEV mode
Last edited:


