Repository navigation
Skip empty source frames during sliced handover release - #185
Open
viktor-ferenczi wants to merge 1 commit into
Open
viktor-ferenczi wants to merge 1 commit into
viktor-ferenczi wants to merge 1 commit into
Conversation
viktor-ferenczi
marked this pull request as ready for review
November 25, 2026 04:35
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.
When an administrator enables
release.closePerFrame, the source node used to schedule a close slice for every captured hierarchy ID. Closing a grid already removes its attached blocks. On a large grid, those IDs could keep the source scheduling empty game-thread calls long after the grid was gone.The source now closes the partition members first, finds surviving children on the game thread, and closes those under the same limit. This preserves cleanup of detached pilots. The new
release_descendantsphase records the number of captured IDs, the number of survivors, and the time spent finding them.Verification
The
P3-HND-RELEASE-SLICESscenario transferred a 46-block grid with 10 fat blocks between two dedicated servers atrelease.closePerFrame=1.The candidate scanned 15 captured descendant IDs in 0.8 ms and found zero survivors. The default
release.closePerFrame=0runs the original single-frame release.Four occupied transfers of an archived base ran in the order 0, 4, 4, 0, with one staging worker and presync disabled. Between 99 and 101 of the original 130 entities remained in the active partition. At a cap of four, the two descendant scans checked 14,383 and 14,132 IDs in 6.4 and 0.5 ms. Neither scan found a surviving world entity. Both players remained connected.
The cap reduced the longest source update and spread the cost over more updates. A separate stale-ownership purge interrupted both capped releases. In the 506 ms frame it closed the remaining grids outside the release callback. The warm default released the source 679 ms after target traffic was ready, compared with 1,199 and 1,020 ms under the cap. The destination bystander's warm P99 was 32 ms at the default and 41.5 ms in both capped runs. Client impact and target import are tracked in SE-1908.