[PR #7365] [MERGED] Port map: TestInstanceRenderer.submit is the marker loop, with the beam and box drawn #7553

Closed
opened 2026-11-03 07:19:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7365
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/stale2-client-008


📝 Commits (1)

  • 984b742 port map: TestInstanceRenderer.submit is the marker loop, with the beam and box drawn

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tools/port_map/client-008.tsv (+1 -1)

📄 Description

Rows of tools/port_map/client-008.tsv (115 rows, map-check clean against 26.3): the test instance block's renderer.

Row

row was now where
TestInstanceRenderer.submit missing port crates/horizon-client/src/game/test_instances.rs::Game::test_instance_marker_geometry

Vanilla's submit does three things: BeaconRenderer.submit over the block's beam sections, BlockEntityWithBoundingBoxRenderer.submit for its box, then submitErrorMarker for each error marker. All three are drawn in the tree:

  • Game::test_instance_marker_geometry (test_instances.rs:234) is the per-block loop: b.error_markers become a translucent red box and billboard text, culled at BeaconRenderer's 256-block view distance.
  • Game::test_instance_beam (beacon.rs:91) is TestInstanceBlockEntity.getBeamSections: cleared is no beam, running grey, a finished test green, a failed required test red and an optional one orange. Game::beacon_geometry (beacon.rs:607) inserts those sections and draws them with block_entity_render::beacon_beam every frame (game.rs:10956).
  • Game::bounding_box_gizmos (structure_blocks.rs:61) draws a test instance block's box at RenderMode::Box, within 96 blocks, only for a player who can use game master blocks or is a spectator — the same isVisible test BlockEntityWithBoundingBoxRenderer.extract makes from canUseGameMasterBlocks/isSpectator. debug_gizmos runs it every frame (game.rs:15214).

The old note described the tree before the test instance renderer, beam and box landed; submit is now the same composition spread over those three per-frame calls, with the marker loop named in where.

Map-check:

PORT_LEDGER_OUT=/tmp/led-stale2 python3 tools/port_ledger.py map-check tools/port_map/client-008.tsv
115 rows, no problems.

Proven: submit's three callees from the 26.3 bytecode; each one read at the cite above and reached from the frame (game.rs:10602 for the markers, game.rs:10956 for the beam, game.rs:15214 for the box). The beam's status-to-colour arms and the box's game-master gate match the vanilla methods (getBeamSections, BlockEntityWithBoundingBoxRenderer.extract).

Not proven: no player-visible change — this records drawing that already exists. I did not place a test instance block in a running client; the beam colours and the box's visibility are read from the code, not seen in game. TestInstanceRenderer.extractRenderState (row 103) carries the same stale wording and is left for its row's owner.


🔄 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/7365 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/stale2-client-008` --- ### 📝 Commits (1) - [`984b742`](https://github.com/horizon-rust/horizon/commit/984b742830dc673610050ff31871e9c1c47d83f0) port map: TestInstanceRenderer.submit is the marker loop, with the beam and box drawn ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client-008.tsv` (+1 -1) </details> ### 📄 Description Rows of `tools/port_map/client-008.tsv` (115 rows, map-check clean against 26.3): the test instance block's renderer. **Row** | row | was | now | where | | --- | --- | --- | --- | | `TestInstanceRenderer.submit` | missing | port | `crates/horizon-client/src/game/test_instances.rs::Game::test_instance_marker_geometry` | Vanilla's `submit` does three things: `BeaconRenderer.submit` over the block's beam sections, `BlockEntityWithBoundingBoxRenderer.submit` for its box, then `submitErrorMarker` for each error marker. All three are drawn in the tree: - `Game::test_instance_marker_geometry` (`test_instances.rs:234`) is the per-block loop: `b.error_markers` become a translucent red box and billboard text, culled at `BeaconRenderer`'s 256-block view distance. - `Game::test_instance_beam` (`beacon.rs:91`) is `TestInstanceBlockEntity.getBeamSections`: cleared is no beam, running grey, a finished test green, a failed required test red and an optional one orange. `Game::beacon_geometry` (`beacon.rs:607`) inserts those sections and draws them with `block_entity_render::beacon_beam` every frame (`game.rs:10956`). - `Game::bounding_box_gizmos` (`structure_blocks.rs:61`) draws a test instance block's box at `RenderMode::Box`, within 96 blocks, only for a player who can use game master blocks or is a spectator — the same `isVisible` test `BlockEntityWithBoundingBoxRenderer.extract` makes from `canUseGameMasterBlocks`/`isSpectator`. `debug_gizmos` runs it every frame (`game.rs:15214`). The old note described the tree before the test instance renderer, beam and box landed; `submit` is now the same composition spread over those three per-frame calls, with the marker loop named in `where`. Map-check: ``` PORT_LEDGER_OUT=/tmp/led-stale2 python3 tools/port_ledger.py map-check tools/port_map/client-008.tsv 115 rows, no problems. ``` **Proven:** `submit`'s three callees from the 26.3 bytecode; each one read at the cite above and reached from the frame (`game.rs:10602` for the markers, `game.rs:10956` for the beam, `game.rs:15214` for the box). The beam's status-to-colour arms and the box's game-master gate match the vanilla methods (`getBeamSections`, `BlockEntityWithBoundingBoxRenderer.extract`). **Not proven:** no player-visible change — this records drawing that already exists. I did not place a test instance block in a running client; the beam colours and the box's visibility are read from the code, not seen in game. `TestInstanceRenderer.extractRenderState` (row 103) carries the same stale wording and is left for its row's owner. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:39 +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#7553
No description provided.