Skip to content

Don't implicitly dirty components#6808

Draft
metalgearsloth wants to merge 4 commits into
space-wizards:masterfrom
metalgearsloth:2026-07-17-proto-dirty
Draft

Don't implicitly dirty components#6808
metalgearsloth wants to merge 4 commits into
space-wizards:masterfrom
metalgearsloth:2026-07-17-proto-dirty

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

Right now every component gets dirtied and so the server sends states for everything. In an ideal world the client only re-runs actually necessary ones (mostly transform, maybe metadata, and any session-specific ones).

It's mostly a server-side optimisation to avoid unnecessary bandwidth.

Built on #6807 so needs that merged first because I was lazy.

Unfortunately we still need to run transform and friends so it's not a huge benefit but if there's any expensive state handling on client we can skip it at least.
If the client can reasonably derive the state itself we won't send it in the initial server states.
@metalgearsloth
metalgearsloth force-pushed the 2026-07-17-proto-dirty branch from acbbd61 to 91bed81 Compare July 17, 2026 07:18
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