server/player/debug: let a debug shape cull itself - #1429
Open
schphe wants to merge 5 commits into
Open
Conversation
schphe
force-pushed
the
feat/debug-shape-fields
branch
from
August 18, 2026 00:45
ddd21e5 to
063549c
Compare
HashimTheArab
approved these changes
Aug 19, 2026
A debug shape stays in the world until it is removed explicitly and is drawn at any distance from the camera, because the two fields the protocol carries for that were never surfaced. Both are on every shape now: Duration is how long the client keeps the shape before removing it on its own, and MaxRenderDistance is the distance beyond which it stops drawing it. Leaving either at zero keeps the behaviour a shape has today, so nothing that already draws shapes changes. Together they take the per-tick removal of short-lived shapes off the server, and the culling of distant ones off the wire.
schphe
force-pushed
the
feat/debug-shape-fields
branch
from
August 20, 2026 07:51
063549c to
f9eddb2
Compare
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.
No description provided.