No Pete... sorry. I don't know exactly how much time the script expends, but I see that in current stage, with until now 138 lvars being read, when a light is turned on on panel, in the offset the value will be changed until 1 second later.
Fokker 100 Digital Aviation
Yeah, I thought in this, and I tried to do this with 7-seg digits, but along the way I decided to use a conditional to after read the LVAR, test if the lvar is diferent from current value stored in a Lua global var, after case the values are not equal so write respective offset.
All the script is based in a concept of run in a loop, read the current value from Lvar, test if is diferente from the value stored, writes the new value if not equal and to each lvar the script will repeat this structure.
If I use that concept will be difficult to use writeStruct.
writeStruc must to be used if I write all Lvar, independent if has change. right?
yes, it load only once and it run all time in a while loop untill I kill the lua or send a parameter diferent of 1
If I run FS9 over a network, and I distribute tasks to copy, will the access to the offset faster?
Explaining: A copy for captain's instruments, reading part of lvar, and a copy for first office's instruments to read the rest... If I use FSUIPC with Lua scripts for read lvar and write to offset and shrinking the work load, at the same time each IOCP in his respective computer running a fs9 copy will map his respective offset and comunicate with IOCARDs as clients... Is this a interesting solution to load balance when has a lot of lvar?
3.998q.Yes, if you have any beta, I can try it with you.
Thanks for all...
See you...