I have about 50 variables that get updated with an rate of about 1kHz by network, but their values change only every few seconds.
The values are for the UI (e.g. text, visibility and background color for buttons).
What is the most efficient way to update the UI?
I previously runned a task every 100ms on the UI thread that set all UI variables. The problem for me was the jitter of the other tasks every 100ms.
I'm looking for a solution to update the UI only when the variables changes.
Is there another way than implementing an own 'variable changed' listener?