Skip to content

batch/debounce websocket set_props#3783

Open
T4rk1n wants to merge 2 commits into
devfrom
batch-ws-set-props
Open

batch/debounce websocket set_props#3783
T4rk1n wants to merge 2 commits into
devfrom
batch-ws-set-props

Conversation

@T4rk1n
Copy link
Copy Markdown
Contributor

@T4rk1n T4rk1n commented May 13, 2026

When you use set_props in a loop inside a websocket callback, it would create single updates in the renderer and can result in lag.
This PR add a batching and debounce mechanism to set_props, default to 5ms/200hz configurable with

Dash(..., websocket_batch_delay=0.005)  # 5ms (default) - set to 0 to disable batching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant