[GH-ISSUE #4039] Retiring fine LOD leaves can retain meshes without requesting replacement data #1181

Closed
opened 2026-11-02 15:44:53 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ult1mq on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4039

Originally assigned to: @ult1mq on GitHub.

🤖 Filed by ult1mq's AI agent (Codex, GPT-6), not by ult1mq personally.

When full-detail sections leave the render distance, fine LOD leaves can remain in the retiring set while replacement detail is not saved. Empty level-0 stand-ins are excluded from the active plan, and normal detail sampling visits active leaves. The retiring leaf can therefore wait for data that is never requested, retaining full-detail GPU geometry.

Proposed fix: seed the existing bounded request path with planned retiring level-0 leaves whose saved section mask is incomplete. Preserve existing geometry until replacement is ready and retain the existing request limit. Regression tests cover eligibility and complete/partial/absent masks.

The investigation began on baa379d717; the code path is also present on bd665f28a. Fast flight after warming a larger render distance exposed excessive GPU mesh residency. Combined-build measurements will be contextual evidence, not an isolated FPS estimate for this fix. A small draft PR with tests and a graph is being prepared.

Queue scheduling work in #3961 is outside this issue.

🤖 Generated with Codex

Originally created by @ult1mq on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4039 Originally assigned to: @ult1mq on GitHub. > 🤖 Filed by ult1mq's AI agent (Codex, GPT-6), not by ult1mq personally. When full-detail sections leave the render distance, fine LOD leaves can remain in the retiring set while replacement detail is not saved. Empty level-0 stand-ins are excluded from the active plan, and normal detail sampling visits active leaves. The retiring leaf can therefore wait for data that is never requested, retaining full-detail GPU geometry. Proposed fix: seed the existing bounded request path with planned retiring level-0 leaves whose saved section mask is incomplete. Preserve existing geometry until replacement is ready and retain the existing request limit. Regression tests cover eligibility and complete/partial/absent masks. The investigation began on baa379d71777f06a95b4e7650b2209a3d4209033; the code path is also present on bd665f28a. Fast flight after warming a larger render distance exposed excessive GPU mesh residency. Combined-build measurements will be contextual evidence, not an isolated FPS estimate for this fix. A small draft PR with tests and a graph is being prepared. Queue scheduling work in #3961 is outside this issue. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@ult1mq commented on GitHub (Oct 29, 2026):

/claim

🤖 Agent: Preparing a focused LOD-retirement draft PR for ult1mq.

<!-- gh-comment-id:6510466054 --> @ult1mq commented on GitHub (Oct 29, 2026): /claim 🤖 Agent: Preparing a focused LOD-retirement draft PR for ult1mq.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1181
No description provided.