[PR #7372] [MERGED] Port map: the new minecart render path is remote_minecart_lerp #7557

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

📋 Pull Request Information

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

Base: main ← Head: chore/stale1-client-003


📝 Commits (1)

  • b15ee4a Port map: the new minecart render path samples its steps

📊 Changes

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

View changed files

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

📄 Description

Row 98 of tools/port_map/client-003.tsv had missing in the verdict cell for AbstractMinecartRenderer.newExtractState, with a note saying experimental minecart movement is not implemented. The new path is in the tree: a cart on NewMinecartBehavior queues steps, and remote_minecart_lerp samples them for the frame.

row before now cites
98 AbstractMinecartRenderer.newExtractState missing — "experimental minecart movement (new render path) is not implemented" crates/horizon-client/src/game/remote.rs::Game::remote_minecart_lerp — the cart's position and rotation sampled at the frame's partial tick from the steps a NewMinecartBehavior cart has queued; None when the cart has no lerp, and the renderer then keeps the entity's own interpolated position and rotation

Validation, against a build of upstream/main (62d8b5828) with both 26.3 jars in /tmp/led-stale1:

$ PORT_LEDGER_OUT=/tmp/led-stale1 python3 tools/port_ledger.py map-check tools/port_map/client-003.tsv
150 rows, no problems.

Proven: vanilla newExtractState (AbstractMinecartRenderer.java:120) takes getCartLerpPosition, getCartLerpXRot and getCartLerpYRot at the partial tick when cartHasPosRotLerp(), and otherwise leaves renderPos null with the entity's own rotation. remote_minecart_lerp returns the sampled position, yaw and pitch from the cart's queued steps, None when there are none, and its two callers do what vanilla does with a null renderPos: minecarts.rs's cart draw interpolates the entity position and uses c.yaw/c.pitch when the sample is missing and the sampled values when it is not, and remote_minecart_rider_position keeps the rider on the sampled position plus the seat offset.

Not proven: that the sampling is bit-for-bit vanilla's weighted steps — the step queue and its weights were not compared against NewMinecartBehavior here, only the shape of the extract (position and rotation from the lerp, entity values on a miss); no parity test covers the new minecart render path.


🔄 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/7372 **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/stale1-client-003` --- ### 📝 Commits (1) - [`b15ee4a`](https://github.com/horizon-rust/horizon/commit/b15ee4a662576a623bc152c2f0a201ae7a490a8c) Port map: the new minecart render path samples its steps ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client-003.tsv` (+1 -1) </details> ### 📄 Description Row 98 of `tools/port_map/client-003.tsv` had `missing` in the verdict cell for `AbstractMinecartRenderer.newExtractState`, with a note saying experimental minecart movement is not implemented. The new path is in the tree: a cart on `NewMinecartBehavior` queues steps, and `remote_minecart_lerp` samples them for the frame. | row | before | now cites | | --- | --- | --- | | 98 `AbstractMinecartRenderer.newExtractState` | `missing` — "experimental minecart movement (new render path) is not implemented" | `crates/horizon-client/src/game/remote.rs::Game::remote_minecart_lerp` — the cart's position and rotation sampled at the frame's partial tick from the steps a `NewMinecartBehavior` cart has queued; `None` when the cart has no lerp, and the renderer then keeps the entity's own interpolated position and rotation | Validation, against a build of `upstream/main` (62d8b5828) with both 26.3 jars in `/tmp/led-stale1`: ``` $ PORT_LEDGER_OUT=/tmp/led-stale1 python3 tools/port_ledger.py map-check tools/port_map/client-003.tsv 150 rows, no problems. ``` **Proven:** vanilla `newExtractState` (`AbstractMinecartRenderer.java:120`) takes `getCartLerpPosition`, `getCartLerpXRot` and `getCartLerpYRot` at the partial tick when `cartHasPosRotLerp()`, and otherwise leaves `renderPos` null with the entity's own rotation. `remote_minecart_lerp` returns the sampled position, yaw and pitch from the cart's queued steps, `None` when there are none, and its two callers do what vanilla does with a null `renderPos`: `minecarts.rs`'s cart draw interpolates the entity position and uses `c.yaw`/`c.pitch` when the sample is missing and the sampled values when it is not, and `remote_minecart_rider_position` keeps the rider on the sampled position plus the seat offset. **Not proven:** that the sampling is bit-for-bit vanilla's weighted steps — the step queue and its weights were not compared against `NewMinecartBehavior` here, only the shape of the extract (position and rotation from the lerp, entity values on a miss); no parity test covers the new minecart render path. --- <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:46 +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#7557
No description provided.