3 ms·
Can you buffer the incoming websockets data and only update at a small percentage of the inputs or maybe based on time? Lodash has a debounce function which is
by jinglebells 10y ago
Can you buffer the incoming websockets data and only update at a small percentage of the inputs or maybe based on time?
Lodash has a debounce function which is useful to throttle UI features hooked to incoming data. https://css-tricks.com/debouncing-throttling-explained-examples/ https://css-tricks.com/debouncing-throttling-explained-examp...
You never really want the UI repaint to be dictated by data, it's better to use timers.