The use case I have it's a bit complex to be provided quickly in a simplified form,
but I just noticed that the flickering (actually a kind of double refresh) is a bit reduced
if use ui.update(delay)
with a higher delay like 3000.
It would be helpful to have a function to freeze any update and unfreeze when some widget processing has been done.