Skip to content

Websocket batched updates - #263

Merged
snide merged 4 commits into
mainfrom
perf_check
Apr 4, 2025
Merged

Websocket batched updates#263
snide merged 4 commits into
mainfrom
perf_check

Conversation

@snide

@snide snide commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

Related to #261

Adds a new batch update system into the websocket layer. This attempts to do the following:

  • Throttle updates based upon the type of update happens in stageProps. Markers update faster than UI...etc
  • Only send the part of the stageProps that needs updating across the broadcast
  • Batch updates that happen rapidly into a single update so stageProps isn't constantly changing

This removes the lag that would happen when you'd move the position of the markers. I have a feeling that previously the level of changes happening, could build and build over time leading to massive amounts of lag in the playfield.

This will need pretty heavy testing.

@github-actions

github-actions Bot commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

Fly Preview Deployments - Completed ✅

@snide
snide merged commit 3e9b664 into main Apr 4, 2025
@snide
snide deleted the perf_check branch April 4, 2025 02:25
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