What is the most efficient and cost effective way to dynamically update an icon on multiple VDs without to much latency or CPU usage in HC2? Updates could happen in random order and also more than one at the same time.
The information source VD alway update global variables instantly no matter what is chosen below…. I want to illustrate the global variable changes on VDs that changes icons that can be tied to specific rooms.
Possible options I can see….
# 1
Let the main loop in each VD poll for a global variable change and update its own icon
Drawback
Must be really often to not have a lag. Maybe to much load if this is done in 5-20 virtual devices main loops
# 2
Let the information source of the info write to a label on each VD at the same time the information source writes the mandatory global variable. This also means the information source at startup time must harvest all VD IDs from their names. Not costly though as is happens at initialization…
Then the main loop in each VD must poll its own label (instead of a global variable) and then update its own icon if there is a change
Maybe a little quicker than option 1. But option 1 is less work...
Drawback
Must be really often to not have a lag. Maybe to much load if this is done in 5-20 virtual devices main loops
# 3
Let a scene trigger on the global variables as the information source writes/updates them. Then let the scene itself dynamically update the icon on the different VDs.
I can probably create the scene dynamically with lua code in it from the main source VD during its initialization process. Then the scene will be re-created with correct info at each initialization of the information source VD.
Is there a drawback by this one? I do not have to poll quickly in many VDs main loops, and instead let the scene trigger of the 5-20 global variables. The drawback is that lua is more limited in a scene. And how about performand latency?
# 4
Other options? Anyone?
Thanks
/Peo