[PR #1561] [MERGED] Remove shader packs #3589

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1561
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: fix/remove-shader-packs


📝 Commits (1)

📊 Changes

123 files changed (+291 additions, -19190 deletions)

View changed files

📝 AGENTS.md (+0 -2)
📝 Cargo.lock (+7 -398)
📝 Cargo.toml (+1 -1)
📝 README.md (+2 -2)
📝 crates/horizon-client/Cargo.toml (+0 -4)
📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+0 -1)
📝 crates/horizon-client/src/game.rs (+16 -55)
📝 crates/horizon-client/src/game/control.rs (+0 -1)
📝 crates/horizon-client/src/game/debug_keys.rs (+0 -1)
📝 crates/horizon-client/src/game/friends.rs (+1 -1)
📝 crates/horizon-client/src/game/options.rs (+0 -16)
📝 crates/horizon-client/src/game/render_tick.rs (+0 -39)
➖ crates/horizon-client/src/game/shader_packs.rs (+0 -131)
📝 crates/horizon-client/src/game/startup_menu.rs (+0 -19)
📝 crates/horizon-client/src/gfx.rs (+20 -845)
📝 crates/horizon-client/src/gfx/animate.rs (+0 -6)
📝 crates/horizon-client/src/gfx/arena.rs (+1 -8)
📝 crates/horizon-client/src/gfx/cull.rs (+46 -122)
📝 crates/horizon-client/src/gfx/cull.wgsl (+0 -22)
📝 crates/horizon-client/src/gfx/flat.rs (+2 -13)

...and 80 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Why

A developer of Iris showed that this code was written from Iris's source. We're removing it, and it may come back as a clean-room rewrite.

What goes

  • The horizon-shaderpack crate. It drops about 40 crates from Cargo.lock.
  • Java pack loading and its render stages, and every Java-pack path in gfx.rs, game.rs, options_ui.rs and graphics*.rs. That includes the shadow pass, the G-buffer, the opaque-depth capture and the pack terrain path.
  • Horizon's own WGSL packs (shader_pack.rs, gfx/pack_stages.rs, the preludes) and examples/shaderpacks.
  • The Shader Packs screen, its buttons in Video Settings, Horizon Settings and Graphics, the drop-a-pack handling, F3 reload, the shader-packs page in horizon-ctl, and the shaderPack setting.
  • The launcher's shader pack browsing and installing: the shader kind, Modrinth shader projects and CurseForge class 6552.
  • The Java benchmark kit's shader capture: ShaderSettings.java, the cinematic profile and the pack-lock entries.
  • Docs: shader-packs.md, java-packs.md, and the shader parts of graphics, vulkan, README, AGENTS and the website.

What stays

  • The vanilla renderer and its post-processing (resolution scale and FXAA) are unchanged. The world pass's depth handling and the occlusion-cull pipeline are back to a single path.
  • Old horizon-graphics.txt files with shaderPack: still load, and the key is dropped when the file is next saved (tested).
  • Old launcher manifests that list a shader pack still load: that entry is skipped and its file is kept (tested).
  • Nothing deletes shaderpacks/.
  • A note in docs/known-issues.md and on the website (settings and FAQ) says shader packs are gone for now.
  • docs/horizon-ctl-commands.md and docs/launcher-commands.md were regenerated. The launcher reference on main was already stale (--in-frame → --server-thread), so that change rides along.
  • The Video Settings screenshot (docs/media/settings-simple.png and its webp copies) was retaken without the Shader Packs button.

Self-check (Mac mini, M4 Pro, Metal)

cargo fmt --all -- --check                                                   ok (game + launcher)
cargo build --workspace --exclude coords-hud --exclude horizon-mods-test-guest   ok, 0 warnings
cargo clippy --workspace --all-targets (same excludes) -- -D warnings        ok
cargo test -p horizon-client --lib --bins --tests                            1181 passed, 0 failed, 29 ignored
launcher: cargo clippy --features gpui/runtime_shaders -- -D warnings        ok
launcher: cargo test                                                         all passed
python3 -m unittest discover -s tests                                        287 run, 2 errors also on main (no java on PATH, /private tmp path)
website: node --test src/ scripts/                                           19 passed
tools/check_public_tree.py                                                   passed
python3 tools/parity.py --changed origin/main                                284 of 333 passed, 0 failed (stopped at the 2 h limit on a busy machine; CI's `parity` job passed on this head)

Same scene, before and after

Seed 4242, 1280x720, offscreen, F1, ticks frozen, clear noon, a lake with a boat, a pig, a sheep, a cow, a villager, a zombie and an armor stand. Both builds use the fast profile.

main (535f2d2a0) this branch
before after

Pixel diff (pure-Python PNG compare):

Pair Pixels that differ
main vs main, two runs 176 (0.019 %, max channel diff 41)
branch vs branch, two runs 329 (0.036 %)
main vs branch 218 (0.024 %) and 23 (0.003 %)
main vs branch with an old shaderPack:OldPack.zip options file 3

The before and after scenes match within run-to-run noise.

Video Settings, before and after:

main this branch
video before video after

Frame time

Same scene, horizon-ctl bench 30 (30 s each), 4 rounds interleaving main (535f2d2a0) and this branch, alternating which goes first. The Mac mini was busy with other sessions' harnesses; the interleaving spreads that noise over both builds. Medians of the 4 runs:

avg fps frame p50 frame p95 frame p99 GPU avg GPU p95 CPU avg CPU p95
main 1459 0.678 ms 0.751 ms 0.929 ms 0.680 ms 0.716 ms 0.292 ms 0.388 ms
this branch 1460 0.679 ms 0.759 ms 0.957 ms 0.680 ms 0.715 ms 0.293 ms 0.393 ms

The two builds are equal within run-to-run noise (per-run spread: avg fps 1445–1473, GPU avg 0.674–0.684 ms). The vanilla path does the same GPU work as before, and the frame no longer gathers the pack inputs.

The 8 screenshots from these rounds fall into two groups 29 % apart, a time-dependent difference between runs, and each group holds both builds: {main 1, main 3, branch 3, branch 4} and {main 2, main 4, branch 1, branch 2}. Within a group, main and branch differ by 86 to 394 pixels, which is the same as main against itself.

Greps

git grep -i optifine returns nothing.

git grep -i iris returns only these, none of them shader pack code:

  • docs/modpacks/atm10-mods.csv (2 rows): the list of ATM10's mods, as data.
  • third_party/wgpu-hal (2 lines) and website/src/hardware.js, estimate.test.mjs: Intel Iris Xe GPUs.
  • mods/horizon/src/test/java/dev/horizonlab/dispatch/QuadReuseIntegration.java: a field name of another mod's API in the benchmark kit's test code. It has nothing to do with shader packs; it is left for the maintainer to decide.

The remaining "shader pack" hits are the removal notes, the old-options and old-manifest tests, and horizon-port-pack classifying a modpack's shaderpacks/ folder as "other".

#1261 and #1262 (shader stages) are already closed; this PR doesn't touch them.

🤖 Generated with Claude Code


🔄 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/1561 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/remove-shader-packs` --- ### 📝 Commits (1) - [`4e7c25b`](https://github.com/horizon-rust/horizon/commit/4e7c25bb55d07f595d2cd67701b53197966a4c0e) Remove shader packs ### 📊 Changes **123 files changed** (+291 additions, -19190 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+0 -2) 📝 `Cargo.lock` (+7 -398) 📝 `Cargo.toml` (+1 -1) 📝 `README.md` (+2 -2) 📝 `crates/horizon-client/Cargo.toml` (+0 -4) 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+0 -1) 📝 `crates/horizon-client/src/game.rs` (+16 -55) 📝 `crates/horizon-client/src/game/control.rs` (+0 -1) 📝 `crates/horizon-client/src/game/debug_keys.rs` (+0 -1) 📝 `crates/horizon-client/src/game/friends.rs` (+1 -1) 📝 `crates/horizon-client/src/game/options.rs` (+0 -16) 📝 `crates/horizon-client/src/game/render_tick.rs` (+0 -39) ➖ `crates/horizon-client/src/game/shader_packs.rs` (+0 -131) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+0 -19) 📝 `crates/horizon-client/src/gfx.rs` (+20 -845) 📝 `crates/horizon-client/src/gfx/animate.rs` (+0 -6) 📝 `crates/horizon-client/src/gfx/arena.rs` (+1 -8) 📝 `crates/horizon-client/src/gfx/cull.rs` (+46 -122) 📝 `crates/horizon-client/src/gfx/cull.wgsl` (+0 -22) 📝 `crates/horizon-client/src/gfx/flat.rs` (+2 -13) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## Why A developer of Iris showed that this code was written from Iris's source. We're removing it, and it may come back as a clean-room rewrite. ## What goes - The `horizon-shaderpack` crate. It drops about 40 crates from `Cargo.lock`. - Java pack loading and its render stages, and every Java-pack path in `gfx.rs`, `game.rs`, `options_ui.rs` and `graphics*.rs`. That includes the shadow pass, the G-buffer, the opaque-depth capture and the pack terrain path. - Horizon's own WGSL packs (`shader_pack.rs`, `gfx/pack_stages.rs`, the preludes) and `examples/shaderpacks`. - The Shader Packs screen, its buttons in Video Settings, Horizon Settings and Graphics, the drop-a-pack handling, F3 reload, the `shader-packs` page in horizon-ctl, and the `shaderPack` setting. - The launcher's shader pack browsing and installing: the `shader` kind, Modrinth `shader` projects and CurseForge class 6552. - The Java benchmark kit's shader capture: `ShaderSettings.java`, the cinematic profile and the pack-lock entries. - Docs: `shader-packs.md`, `java-packs.md`, and the shader parts of graphics, vulkan, README, AGENTS and the website. ## What stays - The vanilla renderer and its post-processing (resolution scale and FXAA) are unchanged. The world pass's depth handling and the occlusion-cull pipeline are back to a single path. - Old `horizon-graphics.txt` files with `shaderPack:` still load, and the key is dropped when the file is next saved (tested). - Old launcher manifests that list a shader pack still load: that entry is skipped and its file is kept (tested). - Nothing deletes `shaderpacks/`. - A note in `docs/known-issues.md` and on the website (settings and FAQ) says shader packs are gone for now. - `docs/horizon-ctl-commands.md` and `docs/launcher-commands.md` were regenerated. The launcher reference on main was already stale (`--in-frame` → `--server-thread`), so that change rides along. - The Video Settings screenshot (`docs/media/settings-simple.png` and its webp copies) was retaken without the Shader Packs button. ## Self-check (Mac mini, M4 Pro, Metal) ``` cargo fmt --all -- --check ok (game + launcher) cargo build --workspace --exclude coords-hud --exclude horizon-mods-test-guest ok, 0 warnings cargo clippy --workspace --all-targets (same excludes) -- -D warnings ok cargo test -p horizon-client --lib --bins --tests 1181 passed, 0 failed, 29 ignored launcher: cargo clippy --features gpui/runtime_shaders -- -D warnings ok launcher: cargo test all passed python3 -m unittest discover -s tests 287 run, 2 errors also on main (no java on PATH, /private tmp path) website: node --test src/ scripts/ 19 passed tools/check_public_tree.py passed python3 tools/parity.py --changed origin/main 284 of 333 passed, 0 failed (stopped at the 2 h limit on a busy machine; CI's `parity` job passed on this head) ``` ## Same scene, before and after Seed 4242, 1280x720, offscreen, F1, ticks frozen, clear noon, a lake with a boat, a pig, a sheep, a cow, a villager, a zombie and an armor stand. Both builds use the `fast` profile. | main (535f2d2a0) | this branch | |---|---| | ![before](https://raw.githubusercontent.com/ludovic111/horizon/7f3e8156338fa118f4eb1fa1c9dcf0eb23d86060/remove-shader-packs/base2.scene.png) | ![after](https://raw.githubusercontent.com/ludovic111/horizon/7f3e8156338fa118f4eb1fa1c9dcf0eb23d86060/remove-shader-packs/after2.scene.png) | Pixel diff (pure-Python PNG compare): | Pair | Pixels that differ | |---|---| | main vs main, two runs | 176 (0.019 %, max channel diff 41) | | branch vs branch, two runs | 329 (0.036 %) | | main vs branch | 218 (0.024 %) and 23 (0.003 %) | | main vs branch with an old `shaderPack:OldPack.zip` options file | 3 | The before and after scenes match within run-to-run noise. Video Settings, before and after: | main | this branch | |---|---| | ![video before](https://raw.githubusercontent.com/ludovic111/horizon/7f3e8156338fa118f4eb1fa1c9dcf0eb23d86060/remove-shader-packs/base2.video.png) | ![video after](https://raw.githubusercontent.com/ludovic111/horizon/7f3e8156338fa118f4eb1fa1c9dcf0eb23d86060/remove-shader-packs/oldopts.video.png) | ## Frame time Same scene, `horizon-ctl bench 30` (30 s each), 4 rounds interleaving main (535f2d2a0) and this branch, alternating which goes first. The Mac mini was busy with other sessions' harnesses; the interleaving spreads that noise over both builds. Medians of the 4 runs: | | avg fps | frame p50 | frame p95 | frame p99 | GPU avg | GPU p95 | CPU avg | CPU p95 | |---|---|---|---|---|---|---|---|---| | main | 1459 | 0.678 ms | 0.751 ms | 0.929 ms | 0.680 ms | 0.716 ms | 0.292 ms | 0.388 ms | | this branch | 1460 | 0.679 ms | 0.759 ms | 0.957 ms | 0.680 ms | 0.715 ms | 0.293 ms | 0.393 ms | The two builds are equal within run-to-run noise (per-run spread: avg fps 1445–1473, GPU avg 0.674–0.684 ms). The vanilla path does the same GPU work as before, and the frame no longer gathers the pack inputs. The 8 screenshots from these rounds fall into two groups 29 % apart, a time-dependent difference between runs, and each group holds both builds: {main 1, main 3, branch 3, branch 4} and {main 2, main 4, branch 1, branch 2}. Within a group, main and branch differ by 86 to 394 pixels, which is the same as main against itself. ## Greps `git grep -i optifine` returns nothing. `git grep -i iris` returns only these, none of them shader pack code: - `docs/modpacks/atm10-mods.csv` (2 rows): the list of ATM10's mods, as data. - `third_party/wgpu-hal` (2 lines) and `website/src/hardware.js`, `estimate.test.mjs`: Intel *Iris* Xe GPUs. - `mods/horizon/src/test/java/dev/horizonlab/dispatch/QuadReuseIntegration.java`: a field name of another mod's API in the benchmark kit's test code. It has nothing to do with shader packs; it is left for the maintainer to decide. The remaining "shader pack" hits are the removal notes, the old-options and old-manifest tests, and `horizon-port-pack` classifying a modpack's `shaderpacks/` folder as "other". ## Related #1261 and #1262 (shader stages) are already closed; this PR doesn't touch them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:10:38 +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#3589
No description provided.