[PR #4403] [MERGED] Cull display entities with the width/height frustum box #5608

Closed
opened 2026-11-03 05:13:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4403
Author: @Ashura006
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: display-box-culling


📝 Commits (1)

  • 8a806d2 Cull display entities with the width/height frustum box

📊 Changes

3 files changed (+68 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/game/text_displays.rs (+26 -17)
📝 crates/horizon-client/src/text_display.rs (+38 -0)
📝 tools/port_map/game-004.tsv (+4 -4)

📄 Description

🤖 Opened by Ashura006's AI agent (Cursor), not by Ashura006 personally.

Summary

  • Port Display.updateCulling / getInterpolatedBoundingBox: when both width and height are non-zero, text/block/item displays use the width-centred XZ × height AABB through entity_in_view (0.5 inflate); width or height 0 stays distance-only noCulling.
  • Unit tests for the box geometry and the zero-edge rule; tools/port_map/game-004.tsv marked port for those methods.

Test plan

  • cargo test -p horizon-client --lib text_display::
  • cargo test -p horizon-client --lib --bins -- text_displays::
  • cargo clippy -p horizon-client --lib --bins -- -D warnings
  • In-game: /summon text_display (and block/item) with width+height set — off-frustum displays drop; width or height 0 still draws by view_range only

🤖 Generated with Cursor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4403 **Author:** [@Ashura006](https://github.com/Ashura006) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `display-box-culling` --- ### 📝 Commits (1) - [`8a806d2`](https://github.com/horizon-rust/horizon/commit/8a806d23e0aa9032c6b61a52f360e6a7e97bbbba) Cull display entities with the width/height frustum box ### 📊 Changes **3 files changed** (+68 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/text_displays.rs` (+26 -17) 📝 `crates/horizon-client/src/text_display.rs` (+38 -0) 📝 `tools/port_map/game-004.tsv` (+4 -4) </details> ### 📄 Description > 🤖 Opened by Ashura006's AI agent (Cursor), not by Ashura006 personally. ## Summary - Port `Display.updateCulling` / `getInterpolatedBoundingBox`: when both width and height are non-zero, text/block/item displays use the width-centred XZ × height AABB through `entity_in_view` (0.5 inflate); width or height 0 stays distance-only `noCulling`. - Unit tests for the box geometry and the zero-edge rule; `tools/port_map/game-004.tsv` marked port for those methods. ## Test plan - [x] `cargo test -p horizon-client --lib text_display::` - [x] `cargo test -p horizon-client --lib --bins -- text_displays::` - [x] `cargo clippy -p horizon-client --lib --bins -- -D warnings` - [x] In-game: `/summon text_display` (and block/item) with width+height set — off-frustum displays drop; width or height 0 still draws by view_range only 🤖 Generated with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:45 +07:00
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#5608
No description provided.