feat: per-realm scene-listener AoI, and reassignment without reconnecting - #469
Open
robtfm wants to merge 2 commits into
Open
feat: per-realm scene-listener AoI, and reassignment without reconnecting#469robtfm wants to merge 2 commits into
robtfm wants to merge 2 commits into
Conversation
…ting A scene listener announced one realm for the whole connection, and its parcel set was fixed until it reconnected. Neither holds for an authoritative server: it cohosts scenes from several realms at once, and its scene set changes while it runs. Replace the handshake's `realm` + `parcel_rects` with a repeated SceneListenerAoi, one entry per realm. Parcels only mean anything inside a realm — every world numbers its own from 0,0 — so a server cohosting cozyfarm.dcl.eth and towerofmadness.dcl.eth has two different scenes at 0,0, which a single flat parcel set cannot express. Keying the AoI by realm keeps that to one connection, which the wallet-unique session rule and the per-IP listener cap both require. Add SceneListenerUpdate (oneof 9) to replace the announced AoI in place on a live connection, so a scene loading or unloading costs neither a reconnect nor a re-authentication.
Test this pull request
|
…eserved fields No scene listener was ever deployed on the single-realm handshake, so there is nothing on the wire to stay compatible with. Reusing the field numbers keeps the message at what it would have been written as fresh.
robtfm
added a commit
to decentraland/bevy-explorer
that referenced
this pull request
Aug 27, 2026
Tracks decentraland/protocol#469: no listener ever shipped on the single-realm handshake, so the reserved fields go and `aoi` takes field 2. Presence harness 36/36 against a Pulse rebuilt on the same proto. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
robtfm
added a commit
to decentraland/bevy-explorer
that referenced
this pull request
Aug 27, 2026
Tracks decentraland/protocol#469: no listener ever shipped on the single-realm handshake, so the reserved fields go and `aoi` takes field 2. Presence harness 36/36 against a Pulse rebuilt on the same proto. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of decentraland/sdk-multiplayer-server#132 — rollout plan in this comment.
A scene listener announced one realm for the whole connection, and its parcel set was fixed until it reconnected. Neither holds for an authoritative server: it cohosts scenes from several realms at once (every world numbers its parcels from 0,0, so a flat parcel set cannot express two worlds'
0,0), and its scene set changes while it runs. One connection per realm is not an option either — the wallet-unique session rule and the per-IP listener cap both forbid it.SceneListenerAoi { realm, parcel_rects },repeatedon the handshake as field 2 — the old realm/rects are dropped outright, no listener ever shipped on them.SceneListenerUpdate(ClientMessageoneof 9) replaces the announced AoI in place on a live connection: no reconnect, no re-authentication.Server side: decentraland/Pulse (linked from the plan). Consumed by bevy-explorer (vendored copy, byte-identical) and unity-explorer.
🤖 Generated with Claude Code