[PR #7107] [MERGED] Clear stale client2-002.tsv rows main already implements #7345

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-002


📝 Commits (1)

  • 83060f6 port_map: clear stale client2-002 rows

📊 Changes

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

View changed files

📝 tools/port_map/client2-002.tsv (+6 -6)

📄 Description

Rows in tools/port_map/client2-002.tsv whose verdict was missing but whose behaviour main already has. The whole post_effect chain system is ported now (crates/horizon-client-render/src/post_chain.rs), including the spectator entity effects (creeper, spider, invert for an enderman), and the totem's item activation has a home too.

row verdict citation
ScreenEffectRenderer.renderItemActivationAnimation (repointed) port crates/horizon-client/src/game/totem.rs::Game::item_activation_geometry
ShaderManager.loadPostChain port crates/horizon-client-render/src/post_chain.rs::Config::parse
ShaderManager.isPostEffectValid inline crates/horizon-client-render/src/post_chain.rs::PostEffects::load
ShaderManager.getPostChain inline crates/horizon-client-render/src/post_chain.rs::PostEffects::apply
ShaderManager.PostChainCache.getOrLoadPostChain inline crates/horizon-client-render/src/post_chain.rs::PostEffects::apply
ShaderManager.PostChainCache.loadPostChain port crates/horizon-client-render/src/post_chain.rs::PostEffects::load
  • loadPostChain: the chain file is read by PostEffects::load and parsed into the config by Config::parse (PostChainConfig.CODEC).
  • isPostEffectValid: load rejects a chain whose referenced external targets are not minecraft:main, with vanilla's own message, where vanilla allows only LevelTargetBundle.MAIN_TARGETS.
  • getPostChain / getOrLoadPostChain: apply loads a chain on the first frame that asks for it, keeps it in its chains map (a miss as None) and records a load failure in failed so it is not retried; the error-screen recovery handler is not ported.
  • PostChainCache.loadPostChain: PostEffects::load builds the targets, passes and pipelines from the config, falls back to the built-in post_chain.wgsl shaders for a pass whose GLSL will not translate, and skips a chain that still fails.

ScreenEffectRenderer.renderItemActivationAnimation was already port, but its citation read crates/horizon-client/src/game.rs::itemActivation + tick_totem (game.rs:2205, 7139), which names no function and fails map-check. It came from the earlier commit 29b910447, not from this one; it is repointed here because it is in the same file.

The chains are requested per frame from Game::requested_post_effects (end_of_frame, the server's LocalPlayer.postEffects, and spectated_post_effect), which is why the spectator rows and the cache rows were stale.

Validation, both jars so the client classes are indexed:

python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/client2-002.tsv
150 rows, no problems.

Proven: every row above against the tree (post_chain.rs, game.rs::requested_post_effects, game/remote_camera.rs::check_entity_post_effect, game/totem.rs with item_activation.rs), and javap -p -c -constants on ShaderManager (the isPostEffectValid external-target check, getPostChain delegating to PostChainCache.getOrLoadPostChain) and ShaderManager$PostChainCache (getOrLoadPostChain, loadPostChain).

Not proven: SectionOcclusionGraph.expectedChunks and updateLoadedChunks stay missing: gfx/occlusion.rs keeps no set of sections waiting on chunk loads (a section's data arriving marks the graph dirty and a fresh search runs), so there is no function to cite.


🔄 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/7107 **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/ledger-client2-002` --- ### 📝 Commits (1) - [`83060f6`](https://github.com/horizon-rust/horizon/commit/83060f64a7348a8782a01de03d991a0d435deab4) port_map: clear stale client2-002 rows ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-002.tsv` (+6 -6) </details> ### 📄 Description Rows in `tools/port_map/client2-002.tsv` whose verdict was `missing` but whose behaviour `main` already has. The whole `post_effect` chain system is ported now (`crates/horizon-client-render/src/post_chain.rs`), including the spectator entity effects (`creeper`, `spider`, `invert` for an enderman), and the totem's item activation has a home too. | row | verdict | citation | | --- | --- | --- | | `ScreenEffectRenderer.renderItemActivationAnimation` (repointed) | `port` | `crates/horizon-client/src/game/totem.rs::Game::item_activation_geometry` | | `ShaderManager.loadPostChain` | `port` | `crates/horizon-client-render/src/post_chain.rs::Config::parse` | | `ShaderManager.isPostEffectValid` | `inline` | `crates/horizon-client-render/src/post_chain.rs::PostEffects::load` | | `ShaderManager.getPostChain` | `inline` | `crates/horizon-client-render/src/post_chain.rs::PostEffects::apply` | | `ShaderManager.PostChainCache.getOrLoadPostChain` | `inline` | `crates/horizon-client-render/src/post_chain.rs::PostEffects::apply` | | `ShaderManager.PostChainCache.loadPostChain` | `port` | `crates/horizon-client-render/src/post_chain.rs::PostEffects::load` | - `loadPostChain`: the chain file is read by `PostEffects::load` and parsed into the config by `Config::parse` (`PostChainConfig.CODEC`). - `isPostEffectValid`: `load` rejects a chain whose referenced external targets are not `minecraft:main`, with vanilla's own message, where vanilla allows only `LevelTargetBundle.MAIN_TARGETS`. - `getPostChain` / `getOrLoadPostChain`: `apply` loads a chain on the first frame that asks for it, keeps it in its `chains` map (a miss as `None`) and records a load failure in `failed` so it is not retried; the error-screen recovery handler is not ported. - `PostChainCache.loadPostChain`: `PostEffects::load` builds the targets, passes and pipelines from the config, falls back to the built-in `post_chain.wgsl` shaders for a pass whose GLSL will not translate, and skips a chain that still fails. `ScreenEffectRenderer.renderItemActivationAnimation` was already `port`, but its citation read `crates/horizon-client/src/game.rs::itemActivation + tick_totem (game.rs:2205, 7139)`, which names no function and fails map-check. It came from the earlier commit 29b910447, not from this one; it is repointed here because it is in the same file. The chains are requested per frame from `Game::requested_post_effects` (`end_of_frame`, the server's `LocalPlayer.postEffects`, and `spectated_post_effect`), which is why the spectator rows and the cache rows were stale. Validation, both jars so the client classes are indexed: ``` python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/client2-002.tsv 150 rows, no problems. ``` **Proven:** every row above against the tree (`post_chain.rs`, `game.rs::requested_post_effects`, `game/remote_camera.rs::check_entity_post_effect`, `game/totem.rs` with `item_activation.rs`), and `javap -p -c -constants` on `ShaderManager` (the `isPostEffectValid` external-target check, `getPostChain` delegating to `PostChainCache.getOrLoadPostChain`) and `ShaderManager$PostChainCache` (`getOrLoadPostChain`, `loadPostChain`). **Not proven:** `SectionOcclusionGraph.expectedChunks` and `updateLoadedChunks` stay `missing`: `gfx/occlusion.rs` keeps no set of sections waiting on chunk loads (a section's data arriving marks the graph dirty and a fresh search runs), so there is no function to cite. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:03 +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#7345
No description provided.