reduce ReadSimVars() count to improve performance#11
reduce ReadSimVars() count to improve performance#11cpuwolf wants to merge 2 commits intoMobiFlight:mainfrom
Conversation
1. use std::list instead of std::vector, for circular iteration 2. list max 5 SimVars reading in very frame 3. VimVars clean() needs update list iterator
|
MobiFlightWasmModule.zip |
use 12 for a while
|
Hi! Very interesting idea. I would like to make the number of vars read at once configurable. I think by default it should behave the way it used to behave and reading all vars at once. But with sending a message like MF.SimVars.SetVarLimit we could then limit it to a desired number. |
|
Hi, I agree making it configurable is a good idea. I disagree in not setting a limit. My tests show it suddenly starts and gets worse and worse with numbers of variables increasing. I think it is hard for someone to figure out that suddenly the number of variables leads to stutters.
@cpuwolf |
|
@Koseng list iterator, because I am newbie of vector, I failed to iterate an int index. that would be great if you can come up with better solution. I agree, the limitation can be configurable |
proposal of issue #9 , This has been tested on device with PilotEdge.net ATC
https://x-plane.vip/quickmade/qg1k/