Repository navigation
[6.42] [eve7] Clear a scene's output after streaming it to a new connection - #24033
Open
root-project-bot wants to merge 1 commit into
Open
root-project-bot wants to merge 1 commit into
root-project-bot wants to merge 1 commit into
Conversation
REveManager::WindowConnect() streams the world and the mandatory scenes to the new connection with StreamElements() and sends the output to that connection only, but leaves it in the scene. The next change cycle then runs SendChangesToSubscribers(), which sends whatever output a scene holds to every subscriber: every client received the full StreamElements of the world and of the mandatory scenes once more, re-ran onEveManagerInit(), rebuilt the summary tree and closed the editor. The same happened in the MIR path that subscribes a viewer to a scene later, where SendSceneChanges() follows the direct send immediately, so the new client got the full stream twice. Added REveScene::ClearOutput(), which drops fOutputJson, fOutputBinary and fTotalBinarySize, and call it after each direct send in both paths. SendChangesToSubscribers() uses it for the clearing it already did. Verified in the browser on track_set_collection.C: the editor of the track set stays open across the first MIR after a page load; before the change the first MIR closed it. Assisted-by: Claude:Fable 5.1 (cherry picked from commit 76948cf)
linev
approved these changes
Nov 6, 2026
Contributor
|
Thank you Sergey! I was already preparing the follow up PR for 6.42, but this is clearly better :) |
This branch has not been deployed
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.
Backport of #24017, requested by @linev. For your information @osschar