Skip to content

server/player/debug: let a debug shape cull itself - #1429

Open
schphe wants to merge 5 commits into
df-mc:masterfrom
oriumgames:feat/debug-shape-fields
Open

server/player/debug: let a debug shape cull itself#1429
schphe wants to merge 5 commits into
df-mc:masterfrom
oriumgames:feat/debug-shape-fields

Conversation

@schphe

@schphe schphe commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@schphe schphe changed the title server/player/debug: let a debug shape expire and cull itself server/player/debug: let a debug shape cull itself Aug 14, 2026
@schphe
schphe force-pushed the feat/debug-shape-fields branch from ddd21e5 to 063549c Compare August 18, 2026 00:45
schphe added 5 commits August 20, 2026 02:47
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
schphe force-pushed the feat/debug-shape-fields branch from 063549c to f9eddb2 Compare August 20, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants